ru_php/Zend/tests/objects/objects_008.phpt

21 lines
374 B
Plaintext
Raw Permalink Normal View History

--TEST--
method overloading with different method signature
--FILE--
<?php
class test {
function foo(Test $arg) {}
}
class test2 extends test {
function foo(Test $arg) {}
}
class test3 extends test {
function foo(Test3 $arg) {}
}
?>
--EXPECTF--
Fatal error: Declaration of test3::foo(Test3 $arg) must be compatible with test::foo(Test $arg) in %s on line %d