On Sun, Jul 3, 2016 at 9:50 AM, Aaron Piotrowski <aa...@trowski.com> wrote:
>> Do you mean that this code:
>>
>> $a = json_decode('{"a": 1, "b": 2, "c": 3}');
>> foreach($a as $b) {
>>    var_dump($b);
>> }
>>
>> will no longer work, or that it will still work, but stdClass would not
>> be instanceof Iterable?
>
> That code will continue to work just as it always has. stdClass will not be 
> accepted by the iterable type.
>
As, it's worth noting, it was never accepted for Traversable.
https://3v4l.org/XJnNi

-Sara

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to