1--TEST--
2iterable type#002 - Default values
3--FILE--
4<?php
5
6function foo(iterable $iterable = null) {
7    // Null should be allowed as a default value
8}
9
10function bar(iterable $iterable = []) {
11    // Array should be allowed as a default value
12}
13
14function baz(iterable $iterable = 1) {
15    // No other values should be allowed as defaults
16}
17
18?>
19--EXPECTF--
20Fatal error: Cannot use int as default value for parameter $iterable of type iterable in %s on line %d
21