Skip to content

Commit

Permalink
Squiz/NonExecutableCode: move parse error test to its own file
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed Dec 10, 2023
1 parent 5a2a376 commit 3d9d852
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.1.inc
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,3 @@ $closure = function ()
echo 'foo';
return; // This return should be flagged as not required.
};

// Intentional syntax error.
return array_map(
6 changes: 6 additions & 0 deletions src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.4.inc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

// Intentional syntax error. See issue #2990.
// Testing that no "Undefined array key "parenthesis_closer"" notice is thrown.
// This must be the only test in this file.
return array_map(

0 comments on commit 3d9d852

Please sign in to comment.