phpdoc_no_access.rst 918 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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>`_
  26. References
  27. ----------
  28. - Fixer class: `PhpCsFixer\\Fixer\\Phpdoc\\PhpdocNoAccessFixer <./../../../src/Fixer/Phpdoc/PhpdocNoAccessFixer.php>`_
  29. - Test class: `PhpCsFixer\\Tests\\Fixer\\Phpdoc\\PhpdocNoAccessFixerTest <./../../../tests/Fixer/Phpdoc/PhpdocNoAccessFixerTest.php>`_
  30. The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.