magic_methods_016.phpt 274 B

12345678910
  1. --TEST--
  2. __call second parameter should be an array when typed
  3. --FILE--
  4. <?php
  5. class Foo {
  6. function __call(string $name, \Arguments $arguments) {}
  7. }
  8. ?>
  9. --EXPECTF--
  10. Fatal error: Foo::__call(): Parameter #2 ($arguments) must be of type array when declared in %s on line %d