Skip to content
On this page

EmptyCatchComment

Checks for empty catch clause without a comment.

Scope

Squiz.Commenting.EmptyCatchComment

Usage

xml
<rule ref="Squiz.Commenting.EmptyCatchComment"></rule>

Examples

Example 1

Valid: Asterisks are aligned.

php
/**
 * @see foo()
 */

Invalid: Asterisks are not aligned.

php
/**
  * @see foo()
*/

Example 2

Valid: One space between asterisk and tag.

php
/**
 * @see foo()
 */

Invalid: Incorrect spacing used.

php
/**
 *  @see foo()
 */

Released under the MIT License.