mirror of
https://github.com/php/php-src.git
synced 2024-12-18 06:21:41 +08:00
13 lines
299 B
PHP
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
|