mirror of
https://github.com/php/php-src.git
synced 2024-11-26 03:16:33 +08:00
15 lines
303 B
PHP
15 lines
303 B
PHP
--TEST--
|
|
errmsg: default value for parameters with array type hint can only be an array or NULL
|
|
--FILE--
|
|
<?php
|
|
|
|
class test {
|
|
function foo(array $a = "s") {
|
|
}
|
|
}
|
|
|
|
echo "Done\n";
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Default value for parameters with array type hint can only be an array or NULL in %s on line %d
|