Skip to content

Commit f9a7493

Browse files
committed
Squiz/ObjectInstantiation: remove keyword context test
Originally, this test was added as part of testing for allowing keywords to be used in other contexts (like function names). This is now covered in the Tokenizer tests. Live coding scenarios would not trigger this sniff as it only looks for context before the 'new' keyword.
1 parent 8581f0c commit f9a7493

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/Standards/Squiz/Tests/Objects/ObjectInstantiationUnitTest.inc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,3 @@ $a = $b !== null
4747
default => 5,
4848
}
4949
: new Foo;
50-
51-
// Intentional parse error. This must be the last test in the file.
52-
function new
53-
?>

0 commit comments

Comments
 (0)