Skip to content

Commit 185a58c

Browse files
minor #17086 CS: use nowdoc instead of heredoc (gharlan)
This PR was merged into the 2.3 branch. Discussion ---------- CS: use nowdoc instead of heredoc | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | — | License | MIT | Doc PR | — if this is accepted, we could add the fixer to symfony level of php-cs-fixer: PHP-CS-Fixer/PHP-CS-Fixer#1580 Commits ------- 3dca549 use nowdoc instead of heredoc
2 parents 25c1765 + 2f479f2 commit 185a58c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Tests/ConstraintViolationListTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function testToString()
110110
$this->getViolation('Error 5', '', '[baz]'),
111111
));
112112

113-
$expected = <<<EOF
113+
$expected = <<<'EOF'
114114
Root:
115115
Error 1
116116
Root.foo.bar:

Tests/ConstraintViolationTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function testToStringHandlesArrays()
2626
null
2727
);
2828

29-
$expected = <<<EOF
29+
$expected = <<<'EOF'
3030
Root.property.path:
3131
Array
3232
EOF;
@@ -45,7 +45,7 @@ public function testToStringHandlesArrayRoots()
4545
null
4646
);
4747

48-
$expected = <<<EOF
48+
$expected = <<<'EOF'
4949
Array.some_value:
5050
42 cannot be used here
5151
EOF;

0 commit comments

Comments
 (0)