What changes is the interface of the `(array)` operator.

On 16 Mar 2017 12:53 a.m., "Andrey Andreev" <n...@devilix.net> wrote:

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

Reply via email to