Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule phpdoc_no_packageΒΆ

@package and @subpackage annotations should be omitted from PHPDoc.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
 <?php
 /**
  * @internal
- * @package Foo
- * subpackage Bar
  */
 class Baz
 {
 }

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\Phpdoc\PhpdocNoPackageFixer