Re: [RFC] New custom object serialization mechanism
| From: | Björn Larsson | Date: | Mon, 28 Jan 2019 11:30:41 +0000 |
| Subject: | Re: [RFC] New custom object serialization mechanism | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-103863@lists.php.net to get a copy of this message | ||
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