Hi, On Thu, Mar 16, 2017 at 1:33 AM, Marco Pivetta <ocram...@gmail.com> wrote: > Correct: passing an object that implements `__toArray()` to an API that > uses an `(array)` cast internally will break or misbehave, if this feature > is added to the language. >
I'm not particularly interested in the idea anyway, but if you change code and *then* something changes - that's not a BC break. Also, I have to agree with Fleshgrinder on that we don't need more magic methods and using an interface would be much cleaner. Cheers, Andrey. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php