Skip to content

Commit 2711048

Browse files
committed
PSR2/UseDeclaration: move parse error test case to its own file
Update comment to indicate that this is an intentional parse error. This was implied by the original comment instructing that it must be the last line in the test case file.
1 parent 8581f0c commit 2711048

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/Standards/PSR2/Tests/Namespaces/UseDeclarationUnitTest.1.inc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,3 @@ enum SomeEnum
3838
$x = $foo ? function ($foo) use /* comment */ ($bar): int {
3939
return 1;
4040
} : $bar;
41-
42-
// Testcase must be on last line in the file.
43-
use
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
3+
// Intentional parse error. Live coding resilience.
4+
use

0 commit comments

Comments
 (0)