Re: [RFC] [Discussion] Readonly Classes
| From: | Ricardo Boss | Date: | Mon, 22 Nov 2021 16:53:35 +0000 |
| Subject: | Re: [RFC] [Discussion] Readonly Classes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-116473@lists.php.net to get a copy of this message | ||
Hi Máté,
you seem to have a typo in your RFC:
"
Similarly how overriding of readonly properties works, only a readonly
class can extend a readonly parent:
class A {}
readonly class B extends A {}
"
I think you meant to write
readonly class A {} instead.
Apart from that, I think readonly classes would be a great idea!
Cheers!
Ricardo