heredoc_to_nowdoc.rst 411 B

12345678910111213141516171819202122232425262728
  1. ==========================
  2. Rule ``heredoc_to_nowdoc``
  3. ==========================
  4. Convert ``heredoc`` to ``nowdoc`` where possible.
  5. Examples
  6. --------
  7. Example #1
  8. ~~~~~~~~~~
  9. .. code-block:: diff
  10. --- Original
  11. +++ New
  12. -<?php $a = <<<"TEST"
  13. +<?php $a = <<<'TEST'
  14. Foo
  15. TEST;
  16. Rule sets
  17. ---------
  18. The rule is part of the following rule set:
  19. - `@PhpCsFixer <./../../ruleSets/PhpCsFixer.rst>`_