php-src/Zend/tests/bug54624.phpt

27 lines
270 B
Plaintext
Raw Normal View History

--TEST--
Bug #54624 (class_alias and type hint)
--FILE--
<?php
class A
{
2020-02-04 05:52:20 +08:00
function foo(A $param) {
}
}
class_alias('A', 'AliasA');
2020-02-04 05:52:20 +08:00
eval('
class B extends A
{
function foo(AliasA $param) {
}
2020-02-04 05:52:20 +08:00
}
');
echo "DONE\n";
?>
--EXPECT--
DONE