summaryrefslogtreecommitdiff
path: root/Zend/tests/abstract_inheritance_003.phpt
blob: 6af55b7d867fa5f7169b7166c24195e18e8e610e (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