Skip to content

Commit f48210d

Browse files
committed
FindEndOfStatementTest: fix broken test
The `return 0;` statement belongs with the `testStaticArrowFunction` test and was introduced to test a specific bug in 2749. This brings the test back to its correct state.
1 parent 0d79f8f commit f48210d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Core/File/FindEndOfStatementTest.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ $a = [
3939
/* testStaticArrowFunction */
4040
static fn ($a) => $a;
4141

42+
return 0;
43+
4244
/* testArrowFunctionReturnValue */
4345
fn(): array => [a($a, $b)];
4446

@@ -101,5 +103,3 @@ $result = match ($key) {
101103
2 => 'one',
102104
},
103105
};
104-
105-
return 0;

0 commit comments

Comments
 (0)