
general_phpdoc_tag_rename
¶Renames PHPDoc tags.
case_sensitive
¶Whether tags should be replaced only if they have exact same casing.
Allowed types: bool
Default value: false
With configuration: ['replacements' => ['inheritDocs' => 'inheritDoc']]
.
--- Original
+++ New
<?php
/**
- * @inheritDocs
- * {@inheritdocs}
+ * @inheritDoc
+ * {@inheritDoc}
*/
With configuration: ['replacements' => ['inheritDocs' => 'inheritDoc'], 'fix_annotation' => false]
.
--- Original
+++ New
<?php
/**
* @inheritDocs
- * {@inheritdocs}
+ * {@inheritDoc}
*/
With configuration: ['replacements' => ['inheritDocs' => 'inheritDoc'], 'fix_inline' => false]
.
--- Original
+++ New
<?php
/**
- * @inheritDocs
+ * @inheritDoc
* {@inheritdocs}
*/
With configuration: ['replacements' => ['inheritDocs' => 'inheritDoc'], 'case_sensitive' => true]
.
--- Original
+++ New
<?php
/**
- * @inheritDocs
+ * @inheritDoc
* {@inheritdocs}
*/
The rule is part of the following rule sets:
@PhpCsFixer with config:
['replacements' => ['inheritDocs' => 'inheritDoc']]
@Symfony with config:
['replacements' => ['inheritDocs' => 'inheritDoc']]