Skip to content

Commit 821b7cd

Browse files
authored
Merge pull request #153 from PHPCSStandards/feature/squiz-nonexecutablecode-test-tweak
Squiz/NonExecutableCode: move parse error test to its own file
2 parents 5a2a376 + 3d9d852 commit 821b7cd

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/Standards/Squiz/Tests/PHP/NonExecutableCodeUnitTest.1.inc

-3
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,3 @@ $closure = function ()
418418
echo 'foo';
419419
return; // This return should be flagged as not required.
420420
};
421-
422-
// Intentional syntax error.
423-
return array_map(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?php
2+
3+
// Intentional syntax error. See issue #2990.
4+
// Testing that no "Undefined array key "parenthesis_closer"" notice is thrown.
5+
// This must be the only test in this file.
6+
return array_map(

0 commit comments

Comments
 (0)