mirror of
https://github.com/php/php-src.git
synced 2024-10-17 06:22:53 +00:00
22 lines
294 B
Plaintext
22 lines
294 B
Plaintext
|
--TEST--
|
||
|
ZE2 method inheritance without interfaces
|
||
|
--FILE--
|
||
|
<?php
|
||
|
|
||
|
class A
|
||
|
{
|
||
|
function f($x) {}
|
||
|
}
|
||
|
|
||
|
class B extends A
|
||
|
{
|
||
|
function f() {}
|
||
|
}
|
||
|
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
|
||
|
Strict Standards: Declaration of B::f() should be compatible with that of A::f() in %sinheritance_003.php on line %d
|
||
|
===DONE===
|