php-src/Zend/tests/abstract_inheritance_003.phpt
2018-10-14 19:45:12 +02:00

13 lines
299 B
PHP

--TEST--
Allow abstract function override
--FILE--
<?php
abstract class A { abstract function bar($x, $y = 0); }
abstract class B extends A { abstract function bar($x); }
echo "DONE";
?>
--EXPECTF--
Fatal error: Declaration of B::bar($x) must be compatible with A::bar($x, $y = 0) in %s