Re: [RFC][Discussion] NotSerializable attribute
| From: | G. P. B. | Date: | Wed, 03 Jan 2024 13:49:11 +0000 |
| Subject: | Re: [RFC][Discussion] NotSerializable attribute | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-122096@lists.php.net to get a copy of this message | ||
On Wed, 3 Jan 2024 at 13:17, Max Semenik <maxsem.wiki@gmail.com> wrote:
> > this actively prevents writing a child class that'd make a parent
> serializable if it wants to.
>
> Wouldn't this violate LSP?
>
No it doesn't.
Making a child class unserializable if the parent is serializable however
is violating LSP, and probably a test should be added for this.
Best regards,
Gina P. Banyard