errmsg_013.phpt 303 B

1234567891011121314
  1. --TEST--
  2. errmsg: default value for parameters with array type hint can only be an array or NULL
  3. --FILE--
  4. <?php
  5. class test {
  6. function foo(array $a = "s") {
  7. }
  8. }
  9. echo "Done\n";
  10. ?>
  11. --EXPECTF--
  12. Fatal error: Default value for parameters with array type hint can only be an array or NULL in %s on line %d