phpdoc_no_package.rst 526 B

12345678910111213141516171819202122232425262728293031323334
  1. ==========================
  2. Rule ``phpdoc_no_package``
  3. ==========================
  4. ``@package`` and ``@subpackage`` annotations should be omitted from PHPDoc.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. /**
  14. * @internal
  15. - * @package Foo
  16. - * subpackage Bar
  17. */
  18. class Baz
  19. {
  20. }
  21. Rule sets
  22. ---------
  23. The rule is part of the following rule sets:
  24. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
  25. - `@Symfony <./../../ruleSets/Symfony.rst>`_