Re: [VOTE] Making stdClass iterable
| From: | Michał Brzuchalski | Date: | Tue, 05 Feb 2019 09:57:01 +0000 |
| Subject: | Re: [VOTE] Making stdClass iterable | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-104169@lists.php.net to get a copy of this message | ||
wt., 5 lut 2019 o 10:24 Côme Chilliet <come@opensides.be> napisał(a):
> Hello,
>
> What is the usecase for this?
>
> The RFC does not explain what it would be useful for.
> json_decode already provides an option for getting arrays instead of
> objects.
>
> All in all the RFC does not provide enough information. As I understand it
> if stdClass is Traversable then all objects are, no?
>
>
stdClass is not a super class so none of the objects in core neither
userland are derived from stdClass
> Côme
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
regards / pozdrawiam,
--
Michał Brzuchalski
about.me/brzuchal
brzuchalski.com