Skip to content

Commit ee3d107

Browse files
committed
Add test for namespaced functions.
1 parent f7027e7 commit ee3d107

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
--TEST--
2+
Pipe operator handles all callable styles
3+
--FILE--
4+
<?php
5+
6+
namespace Beep {
7+
function test(int $x) {
8+
print $x;
9+
}
10+
}
11+
12+
namespace Bar {
13+
use function \Beep\test;
14+
15+
5 |> test(...);
16+
}
17+
?>
18+
--EXPECT--
19+
5

0 commit comments

Comments
 (0)