23 lines
243 B
PHP
23 lines
243 B
PHP
--TEST--
|
|
Pipe operator handles namespaces
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace Beep {
|
|
function test(int $x) {
|
|
echo $x, PHP_EOL;
|
|
}
|
|
}
|
|
|
|
namespace Bar {
|
|
use function \Beep\test;
|
|
|
|
5 |> test(...);
|
|
|
|
5 |> \Beep\test(...);
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
5
|
|
5
|