xref: /PHP-8.0/Zend/tests/foreach_over_null.phpt (revision a99d08b5)
1--TEST--
2foreach over null
3--FILE--
4<?php
5
6function test() {
7    foreach (null as $v) {
8        echo "Foo\n";
9    }
10}
11test();
12
13?>
14--EXPECTF--
15Warning: foreach() argument must be of type array|object, null given in %s on line %d
16