inheritance_003.phpt 264 B

123456789101112131415161718
  1. --TEST--
  2. ZE2 method inheritance without interfaces
  3. --FILE--
  4. <?php
  5. class A
  6. {
  7. function f($x) {}
  8. }
  9. class B extends A
  10. {
  11. function f() {}
  12. }
  13. ?>
  14. --EXPECTF--
  15. Fatal error: Declaration of B::f() must be compatible with A::f($x) in %sinheritance_003.php on line %d