Re: Add __toArray() method to objects that would be called on cast to array

From: Date: Thu, 16 Mar 2017 00:22:54 +0000
Subject: Re: Add __toArray() method to objects that would be called on cast to array
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.internals 
Request: Send a blank email to internals+get-98560@lists.php.net to get a copy of this message
On Mar 16, 2017 2:01 AM, "Marco Pivetta" <ocramius@gmail.com> wrote: What changes is the interface of the (array) operator. I understand what you mean, I just disagree that it constitutes a BC break in the sense that no existing code would break/misbehave by simply updating to a PHP version including the feature. That's just the only sane criteria by which to label changes as BC breaks, because if we don't stick to that, there'd be an argument to be made that literally every change is. And that would mean the term loses its meaning and becomes useless. Cheers, Andrey.

« previous php.internals (#98560) next »