mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
19 lines
260 B
PHP
19 lines
260 B
PHP
--TEST--
|
|
ZE2 method inheritance without interfaces
|
|
--FILE--
|
|
<?php
|
|
|
|
class A
|
|
{
|
|
function f() {}
|
|
}
|
|
|
|
class B extends A
|
|
{
|
|
function f($x) {}
|
|
}
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Declaration of B::f($x) must be compatible with A::f() in %sinheritance_004.php on line %d
|