Den 2019-01-24 kl. 15:09, skrev Marco Pivetta:
Not really fussed about having another implicit interface for serialization
(via magic methods).
Wouldn't a new interface make this clear, explicit, and make the
deprecation path easier (together with the migration)?
How important is the following statement from the RFC regarding magic
methods vs Interfaces?
- "Using an interface instead requires either raising the version
requirement to PHP 7.4, or dealing with the definition of a stub
interface in a compatible manner."
Sounds like it would be easier to implement this feature in
code/libraries targeting 7.x versions.
r//Björn Larsson
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php