integer_literal_case.rst 480 B

123456789101112131415161718192021222324252627282930
  1. =============================
  2. Rule ``integer_literal_case``
  3. =============================
  4. Integer literals must be in correct case.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. <?php
  13. -$foo = 0Xff;
  14. -$bar = 0B11111111;
  15. +$foo = 0xFF;
  16. +$bar = 0b11111111;
  17. Rule sets
  18. ---------
  19. The rule is part of the following rule sets:
  20. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_
  21. - `@Symfony <./../../ruleSets/Symfony.rst>`_