Skip to content

Commit 01dc92c

Browse files
Create spread_operator_stays.php.inc
The spread operator should not be removed when changing to pipe operator
1 parent d7bb039 commit 01dc92c

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
$arrayOfArrays = [['a'], ['a'], ['b']];
4+
$merged = array_unique(array_merge(...$arrayOfArrays));
5+
6+
?>
7+
-----
8+
<?php
9+
10+
$merged = array_merge(...$arrayOfArrays)
11+
|> array_unique(...);
12+
13+
?>

0 commit comments

Comments
 (0)