no_homoglyph_names.rst 697 B

123456789101112131415161718192021222324252627282930313233343536
  1. ===========================
  2. Rule ``no_homoglyph_names``
  3. ===========================
  4. Replace accidental usage of homoglyphs (non ascii characters) in names.
  5. Warning
  6. -------
  7. Using this rule is risky
  8. ~~~~~~~~~~~~~~~~~~~~~~~~
  9. Renames classes and cannot rename the files. You might have string references to
  10. renamed code (``$$name``).
  11. Examples
  12. --------
  13. Example #1
  14. ~~~~~~~~~~
  15. .. code-block:: diff
  16. --- Original
  17. +++ New
  18. -<?php $nаmе = 'wrong "a" character';
  19. +<?php $name = 'wrong "a" character';
  20. Rule sets
  21. ---------
  22. The rule is part of the following rule sets:
  23. - `@PhpCsFixer:risky <./../../ruleSets/PhpCsFixerRisky.rst>`_
  24. - `@Symfony:risky <./../../ruleSets/SymfonyRisky.rst>`_