Fork me on GitHub
a Sensio Labs Product

I ate three cookies πŸͺ (v3.40.2) edition

Rule string_line_endingΒΆ

All multi-line strings must use correct line ending.

WarningΒΆ

Using this rule is riskyΒΆ

Changing the line endings of multi-line strings might affect string comparisons and outputs.

ExamplesΒΆ

Example #1ΒΆ

--- Original
+++ New
-<?php $a = 'my^M
+<?php $a = 'my
 multi
-line^M
+line
 string';^M

Rule setsΒΆ

The rule is part of the following rule sets:

Source classΒΆ

PhpCsFixer\Fixer\StringNotation\StringLineEndingFixer