phpdoc_no_access.rst 521 B

12345678910111213141516171819202122232425262728293031323334
  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 <./../../ruleSets/PhpCsFixer.rst>`_
  25. - `@Symfony <./../../ruleSets/Symfony.rst>`_