xref: /PHP-8.0/Zend/tests/errmsg_013.phpt (revision ac0853eb)
1--TEST--
2errmsg: default value for parameters with array type can only be an array or null
3--FILE--
4<?php
5
6class test {
7    function foo(array $a = "s") {
8    }
9}
10
11echo "Done\n";
12?>
13--EXPECTF--
14Fatal error: Cannot use string as default value for parameter $a of type array in %s on line %d
15