Hi! > Code will error if a non-array value is passed through a looping feature. > For example, this code: > > <?php > > $foo = "abc"; > > foreach ($foo as $bar) {
Looks like $foo??[] would work here. If $foo is something like false or null, that is. If it's not, this is probably a serious bug (why would you iterate on something that is a number or a non-iterable object) and should be either fixed or resolved explicitly, not hidden. -- Stas Malyshev smalys...@gmail.com -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php