mirror of
https://github.com/php/php-src.git
synced 2024-12-21 07:51:23 +08:00
27 lines
245 B
PHP
27 lines
245 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";
|
|
?>
|
|
--EXPECTF--
|
|
DONE
|