mirror of
https://github.com/php/php-src.git
synced 2024-12-17 13:59:28 +08:00
27 lines
270 B
PHP
27 lines
270 B
PHP
--TEST--
|
|
Bug #54624 (class_alias and type hint)
|
|
--FILE--
|
|
<?php
|
|
class A
|
|
{
|
|
function foo(A $param) {
|
|
}
|
|
|
|
}
|
|
|
|
class_alias('A', 'AliasA');
|
|
|
|
eval('
|
|
class B extends A
|
|
{
|
|
function foo(AliasA $param) {
|
|
}
|
|
|
|
}
|
|
');
|
|
|
|
echo "DONE\n";
|
|
?>
|
|
--EXPECT--
|
|
DONE
|