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 <stevenwad...@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