summaryrefslogtreecommitdiff
path: root/Zend/tests/abstract_inheritance_003.phpt
blob: 24d5920cc15a9e0d22b5602dcc06bf89666da697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--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