argument_restriction_003.phpt 513 B

12345678910111213141516171819
  1. --TEST--
  2. Bug #55719 (Argument restriction should come with a more specific error message)
  3. --FILE--
  4. <?php
  5. class Foo {
  6. }
  7. Abstract Class Base {
  8. public function test(Foo $foo, array $bar, $option = NULL, $extra = "lllllllllllllllllllllllllllllllllllllllllllllllllll") {
  9. }
  10. }
  11. class Sub extends Base {
  12. public function test() {
  13. }
  14. }
  15. ?>
  16. --EXPECTF--
  17. Fatal error: Declaration of Sub::test() must be compatible with Base::test(Foo $foo, array $bar, $option = null, $extra = 'llllllllll...') in %s on line %d