php-src/Zend/tests/errmsg_013.phpt
2020-02-17 14:22:17 +01:00

15 lines
290 B
PHP

--TEST--
errmsg: default value for parameters with array type can only be an array or null
--FILE--
<?php
class test {
function foo(array $a = "s") {
}
}
echo "Done\n";
?>
--EXPECTF--
Fatal error: Cannot use string as default value for parameter $a of type array in %s on line %d