
Rule phpdoc_tag_type
ΒΆ
Forces PHPDoc tags to be either regular annotations or inline.
ConfigurationΒΆ
ExamplesΒΆ
Example #1ΒΆ
Default configuration.
--- Original
+++ New
<?php
/**
- * {@api}
+ * @api
*/
Example #2ΒΆ
With configuration: ['tags' => ['inheritdoc' => 'inline']]
.
--- Original
+++ New
<?php
/**
- * @inheritdoc
+ * {@inheritdoc}
*/
Rule setsΒΆ
The rule is part of the following rule sets:
@PhpCsFixer with config:
['tags' => ['inheritDoc' => 'inline']]
@Symfony with config:
['tags' => ['inheritDoc' => 'inline']]