mirror of
https://github.com/php/php-src.git
synced 2024-12-25 01:40:50 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
27 lines
244 B
PHP
27 lines
244 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
|