Return to type_hinting_005d.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / tests / classes |
php
--TEST-- Check type hint compatibility in overrides with array hints. --FILE-- <?php Class C { function f($a) {} } echo "Array hint, should be nothing.\n"; Class D extends C { function f(array $a) {} } ?> ==DONE== --EXPECTF-- Strict Standards: Declaration of D::f() should be compatible with that of C::f() in %s on line 5 Array hint, should be nothing. ==DONE==