--TEST-- ZE2 class type hinting with arrays --FILE-- --EXPECTF-- Test::f1() array(1) { [0]=> int(42) } Test::f2() NULL Test::f2() NULL Test::f3() array(0) { } Test::f4() array(1) { [0]=> int(25) } Catchable fatal error: Argument 1 passed to Test::f1() must be of the type array, integer given, called in %s on line %d and defined in %s on line %d