blob: 29b96d379f8d32181afa95b22c6a7e1fe1891ab1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
--TEST--
Check by-ref RECV_INIT with single type
--FILE--
<?php
function test(array &$foo = []) {
}
try {
$bar = 42;
test($bar);
} catch (TypeError $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECTF--
test(): Argument #1 ($foo) must be of type array, int given, called in %s on line %d
|