mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
8d00385871
Per RFC https://wiki.php.net/rfc/reclassify_e_strict While reviewing this, found that there are still three E_STRICTs left in libraries - need to discuss those.
22 lines
279 B
PHP
22 lines
279 B
PHP
--TEST--
|
|
ZE2 method inheritance without interfaces
|
|
--FILE--
|
|
<?php
|
|
|
|
class A
|
|
{
|
|
function f($x) {}
|
|
}
|
|
|
|
class B extends A
|
|
{
|
|
function f() {}
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECTF--
|
|
|
|
Warning: Declaration of B::f() should be compatible with A::f($x) in %sinheritance_003.php on line %d
|
|
===DONE===
|