Skip to content

Commit 2dbbb8a

Browse files
committed
Add test case for conflicting use and use function alias (stas)
1 parent 4adf49e commit 2dbbb8a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
--TEST--
2+
use and use function with the same alias
3+
--FILE--
4+
<?php
5+
6+
namespace {
7+
function foo() {
8+
return 'foo';
9+
}
10+
}
11+
12+
namespace x {
13+
use foo as bar;
14+
use function foo as bar;
15+
var_dump(bar());
16+
}
17+
18+
?>
19+
--EXPECT--
20+
string(3) "foo"

0 commit comments

Comments
 (0)