Fork me on GitHub
a Sensio Labs Product

Persian Successor (v3.65.0) edition

Rule phpdoc_no_alias_tag

No alias PHPDoc tags should be used.

Configuration

replacements

Mapping between replaced annotations with new ones.

Allowed types: array<string, string>

Default value: ['property-read' => 'property', 'property-write' => 'property', 'type' => 'var', 'link' => 'see']

Examples

Example #1

Default configuration.

--- Original
+++ New
 <?php
 /**
  * @property string $foo
- * @property-read string $bar
+ * @property string $bar
  *
- * @link baz
+ * @see baz
  */
 final class Example
 {
 }

Example #2

With configuration: ['replacements' => ['link' => 'website']].

--- Original
+++ New
 <?php
 /**
  * @property string $foo
  * @property-read string $bar
  *
- * @link baz
+ * @website baz
  */
 final class Example
 {
 }

Rule sets

The rule is part of the following rule sets:

References

The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.