Comments with annotation should be docblock when used on structural elements.
Risky as new docblocks might mean more, e.g. a Doctrine entity might have a new column in database.
List of ignored tags.
Allowed types: array
Default value: []
Default configuration.
--- Original
+++ New
-<?php /* header */ $x = true; /* @var bool $isFoo */ $isFoo = true;
+<?php /* header */ $x = true; /** @var bool $isFoo */ $isFoo = true;
With configuration: ['ignored_tags' => ['todo']]
.
--- Original
+++ New
<?php
// @todo do something later
$foo = 1;
-// @var int $a
+/** @var int $a */
$a = foo();
The rule is part of the following rule set: