========================== Rule ``comment_to_phpdoc`` ========================== Comments with annotation should be docblock when used on structural elements. Warning ------- Using this rule is risky ~~~~~~~~~~~~~~~~~~~~~~~~ Risky as new docblocks might mean more, e.g. a Doctrine entity might have a new column in database. Configuration ------------- ``ignored_tags`` ~~~~~~~~~~~~~~~~ List of ignored tags. Allowed types: ``list`` Default value: ``[]`` Examples -------- Example #1 ~~~~~~~~~~ *Default* configuration. .. code-block:: diff --- Original +++ New - ['todo']]``. .. code-block:: diff --- Original +++ New `_ References ---------- - Fixer class: `PhpCsFixer\\Fixer\\Comment\\CommentToPhpdocFixer <./../../../src/Fixer/Comment/CommentToPhpdocFixer.php>`_ - Test class: `PhpCsFixer\\Tests\\Fixer\\Comment\\CommentToPhpdocFixerTest <./../../../tests/Fixer/Comment/CommentToPhpdocFixerTest.php>`_ The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.