Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 876 Bytes

general_phpdoc_annotation_remove.rst

File metadata and controls

54 lines (39 loc) · 876 Bytes

Rule general_phpdoc_annotation_remove

Configured annotations should be omitted from PHPDoc.

Configuration

annotations

List of annotations to remove, e.g. ["author"].

Allowed types: array

Default value: []

Examples

Example #1

With configuration: ['annotations' => ['author']].

--- Original
+++ New
 <?php
 /**
  * @internal
- * @author John Doe
  */
 function foo() {}

Example #2

With configuration: ['annotations' => ['package', 'subpackage']].

--- Original
+++ New
 <?php
 /**
  * @author John Doe
- * @package ACME API
- * @subpackage Authorization
  * @version 1.0
  */
 function foo() {}