php-src/Zend/tests/gh11152.phpt
Ilija Tovilo 5ad6571a21
Allow aliasing namespaces containing reserved class names
This reverts commit b9f7123c5e.

Fixes GH-11152
Closes GH-11153
2023-04-30 13:44:34 +02:00

21 lines
265 B
PHP

--TEST--
GH-11152: Allow aliasing namespaces containing reserved class names
--FILE--
<?php
namespace string;
use string as StringAlias;
class C {}
function test(StringAlias\C $o) {
var_dump($o::class);
}
test(new C());
?>
--EXPECT--
string(8) "string\C"