Skip to content

Commit 08a98ad

Browse files
committed
IsReferenceTest: fix two unintentional parse errors in the test case file
1 parent c4eefdf commit 08a98ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Core/File/IsReferenceTest.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $a = [ $something & $somethingElse ];
1212
$a = [ $first, $something & self::$somethingElse ];
1313

1414
/* testBitwiseAndD */
15-
$a = array $first, $something & $somethingElse );
15+
$a = array( $first, $something & $somethingElse );
1616

1717
/* testBitwiseAndE */
1818
$a = [ 'a' => $first, 'b' => $something & $somethingElse ];
@@ -51,7 +51,7 @@ function myFunction(array &$one) {}
5151
$closure = function (\MyClass &$one) {};
5252

5353
/* testFunctionPassByReferenceG */
54-
$closure = function myFunc($param, &...$moreParams) {};
54+
$closure = function ($param, &...$moreParams) {};
5555

5656
/* testForeachValueByReference */
5757
foreach( $array as $key => &$value ) {}

0 commit comments

Comments
 (0)