Skip to content

Commit f9c4217

Browse files
authored
Merge pull request #1 from Girgias/funsies-additions
Add test to check behaviour of prefer-by-ref parameters
2 parents c8c0365 + 48bb0de commit f9c4217

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
--TEST--
2+
Pipe operator accepts prefer-by-reference functions.
3+
--FILE--
4+
<?php
5+
6+
$a = ['hello', 'world'];
7+
8+
try {
9+
$r = $a |> array_multisort(...);
10+
var_dump($r);
11+
} catch (\Error $e) {
12+
print $e->getMessage() . PHP_EOL;
13+
}
14+
15+
?>
16+
--EXPECT--
17+
bool(true)

0 commit comments

Comments
 (0)