Am 04.02.20 um 14:43 schrieb Marco Pivetta:
>> I think we can't classify it as BC break, because no existing code
>> implements __toArray at the moment, and hence it will not fail when this
>> feature is introduced and code gets upgraded to newer versions.
> 
> It is a BC break because it changes the semantic of `(array) $object`: the
> operation is no longer stable between two versions of the language.

It wouldn't be a BC breaking change if `(array) $object` works like
before when __toArray() isn't implemented by an object. As nobody should
have implemented __toArray() because it's a reserved name for magic
methods, we should be fine.

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to