phpdoc_no_access.rst 598 B

1234567891011121314151617181920212223242526272829303132333435
  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. @@ -3,7 +3,6 @@
  13. {
  14. /**
  15. * @internal
  16. - * @access private
  17. */
  18. private $bar;
  19. }
  20. Rule sets
  21. ---------
  22. The rule is part of the following rule sets:
  23. @Symfony
  24. Using the ``@Symfony`` rule set will enable the ``phpdoc_no_access`` rule.
  25. @PhpCsFixer
  26. Using the ``@PhpCsFixer`` rule set will enable the ``phpdoc_no_access`` rule.