Re: JsonSerializable New Interface method Proposal
| From: | Rowan Collins | Date: | Mon, 13 Jul 2015 14:59:55 +0000 |
| Subject: | Re: JsonSerializable New Interface method Proposal | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-87147@lists.php.net to get a copy of this message | ||
guilhermeblanco@gmail.com wrote on 13/07/2015 15:19:
What about JsonDeserializable? I would like to have the choice to have a serialize-only operation.Yeah, this would need to be a new interface, because interfaces can't have optional methods, so changing the existing interface would instantly break all existing implementations, which would be a big no-no IMHO.