1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 16:22:37 +01:00
Files
archived-php-src/Zend/tests/errmsg_013.phpt
Máté Kocsis ac0853eb26 Make type error messages more consistent
Closes GH-5092
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