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