
phpdoc_tag_type
¶Forces PHPDoc tags to be either regular annotations or inline.
tags
¶The list of tags to fix.
Allowed types: array
Default value: ['api' => 'annotation', 'author' => 'annotation', 'copyright' => 'annotation', 'deprecated' => 'annotation', 'example' => 'annotation', 'global' => 'annotation', 'inheritDoc' => 'annotation', 'internal' => 'annotation', 'license' => 'annotation', 'method' => 'annotation', 'package' => 'annotation', 'param' => 'annotation', 'property' => 'annotation', 'return' => 'annotation', 'see' => 'annotation', 'since' => 'annotation', 'throws' => 'annotation', 'todo' => 'annotation', 'uses' => 'annotation', 'var' => 'annotation', 'version' => 'annotation']
With configuration: ['tags' => ['inheritdoc' => 'inline']]
.
--- Original
+++ New
<?php
/**
- * @inheritdoc
+ * {@inheritdoc}
*/
The rule is part of the following rule sets:
Using the @PhpCsFixer rule set will enable the phpdoc_tag_type
rule with the config below:
['tags' => ['inheritDoc' => 'inline']]
Using the @Symfony rule set will enable the phpdoc_tag_type
rule with the config below:
['tags' => ['inheritDoc' => 'inline']]