argument_restriction_005.phpt 381 B

1234567891011
  1. --TEST--
  2. Bug #55719 (Argument restriction should come with a more specific error message)
  3. --FILE--
  4. <?php
  5. class Sub implements ArrayAccess {
  6. public function offsetSet(): void {
  7. }
  8. }
  9. ?>
  10. --EXPECTF--
  11. Fatal error: Declaration of Sub::offsetSet(): void must be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void in %sargument_restriction_005.php on line %d