phpdoc_no_access.rst 666 B

123456789101112131415161718192021222324252627282930313233343536
  1. =========================
  2. Rule ``phpdoc_no_access``
  3. =========================
  4. ``@access`` annotations should be omitted from PHPDoc.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. class Foo
  14. {
  15. /**
  16. * @internal
  17. - * @access private
  18. */
  19. private $bar;
  20. }
  21. Rule sets
  22. ---------
  23. The rule is part of the following rule sets:
  24. @PhpCsFixer
  25. Using the `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_ rule set will enable the ``phpdoc_no_access`` rule.
  26. @Symfony
  27. Using the `@Symfony <./../../ruleSets/Symfony.rst>`_ rule set will enable the ``phpdoc_no_access`` rule.