Skip to content

Commit

Permalink
Generic/SpreadOperatorSpacingAfter: move parse error test to its own …
Browse files Browse the repository at this point in the history
…file
  • Loading branch information
biinari authored and jrfnl committed Jul 13, 2024
1 parent 34f80a6 commit 19c091f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,3 @@ $map = array_map(strtolower(...), $map);

// Ignore PHP 8.1 first class callable declarations.
$map = array_map(strtolower( ... ), $map);

// Intentional parse error. This has to be the last test in the file.
function bar( ...
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,3 @@ $map = array_map(strtolower(...), $map);

// Ignore PHP 8.1 first class callable declarations.
$map = array_map(strtolower( ... ), $map);

// Intentional parse error. This has to be the last test in the file.
function bar( ...
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?php

// Intentional parse error. Testing that the sniff is *not* triggered in this case.
function bar( ...

0 comments on commit 19c091f

Please sign in to comment.