All PHP files must use same line ending.
--- Original
+++ New
<?php $b = " $a ^M
- 123"; $a = <<<TEST^M
-AAAAA ^M
- |^M
+ 123"; $a = <<<TEST
+AAAAA
+ |
TEST;
The rule is part of the following rule sets:
- Fixer class: PhpCsFixer\Fixer\Whitespace\LineEndingFixer
- Test class: PhpCsFixer\Tests\Fixer\Whitespace\LineEndingFixerTest
The test class defines officially supported behaviour. Each test case is a part of our backward compatibility promise.