Edit report at http://bugs.php.net/bug.php?id=54532&edit=1
ID: 54532 Updated by: fel...@php.net Reported by: david at grudl dot com Summary: class_alias and type hint -Status: Open +Status: Bogus Type: Bug Package: Class/Object related PHP Version: 5.3.6 Block user comment: N Private report: N New Comment: This is an error in parsing-time, the alias in this point was not created yet... So we cannot use the alias name in the type hint. Previous Comments: ------------------------------------------------------------------------ [2011-04-14 14:52:12] david at grudl dot com Description: ------------ class_alias() is not taken into account by type hints. Test script: --------------- <?php class A { function foo(A $param) { } } class_alias('A', 'AliasA'); eval(' class B extends A { function foo(AliasA $param) { } } '); Expected result: ---------------- no error Actual result: -------------- Strict Standards: Declaration of B::foo() should be compatible with that of A::foo() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=54532&edit=1