Skip to content

Commit 530e7ab

Browse files
committed
Generic/SpreadOperatorSpacingAfter: move parse error test to its own file
1 parent a791025 commit 530e7ab

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc

-3
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,3 @@ $map = array_map(strtolower(...), $map);
7474

7575
// Ignore PHP 8.1 first class callable declarations.
7676
$map = array_map(strtolower( ... ), $map);
77-
78-
// Intentional parse error. This has to be the last test in the file.
79-
function bar( ...

src/Standards/Generic/Tests/WhiteSpace/SpreadOperatorSpacingAfterUnitTest.1.inc.fixed

-3
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,3 @@ $map = array_map(strtolower(...), $map);
6969

7070
// Ignore PHP 8.1 first class callable declarations.
7171
$map = array_map(strtolower( ... ), $map);
72-
73-
// Intentional parse error. This has to be the last test in the file.
74-
function bar( ...
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
// Intentional parse error. Testing that the sniff is *not* triggered in this case.
4+
function bar( ...

0 commit comments

Comments
 (0)