Re: [RFC - discussion] __toArray()
| From: | Marco Pivetta | Date: | Tue, 04 Feb 2020 13:10:02 +0000 |
| Subject: | Re: [RFC - discussion] __toArray() | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-108371@lists.php.net to get a copy of this message | ||
Linking (again) previous discussions:
https://externals.io/message/98539#98539
__toArray as a magic function call when (array) cast happen is a bad
idea: it is a BC break, and it removes one of the very few interactions
(with objects) that didn't cause any side-effects (
https://externals.io/message/98539#98545,
https://externals.io/message/98539#98567)
Greets,
Marco Pivetta
http://twitter.com/Ocramius
http://ocramius.github.com/
On Tue, Feb 4, 2020 at 2:03 PM Steven Wade <stevenwadejr@gmail.com> wrote:
> Hi all,
>
> I’d like to officially open my __toArray() RFC <
> https://wiki.php.net/rfc/to-array> up to discussion. I’ve
> delayed
> changing the status until I had more time to respond to the discussion, but
> since it’s been brought up again
> <https://externals.io/message/108351>, I
> figured now is the best time.
>
> https://wiki.php.net/rfc/to-array
> <https://wiki.php.net/rfc/to-array>
>
> Cheers,
>
> Steven Wade