Re: [RFC] [Discussion] Readonly class amendments
| From: | Rowan Tommins | Date: | Tue, 15 Nov 2022 08:54:18 +0000 |
| Subject: | Re: [RFC] [Discussion] Readonly class amendments | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-119010@lists.php.net to get a copy of this message | ||
On 15/11/2022 06:30, Máté Kocsis wrote:
Hi Everyone, Following Nicolas' thread about "Issues with readonly classes" ( https://externals.io/message/118554), we created an RFC to fix two issues with the readonly behavior:https://wiki.php.net/rfc/readonly_amendments Please let us know your thoughts! MátéHi Máté, I'm not totally clear what this sentence is saying:
Reinitialization can only take place /during/ the |__clone()| magic method call, no matter if the actual assignment happens in a different method or function invoked inside |__clone()|.Are you saying that invoking a separate method like "setSomeProperty($blah)" from __clone() is allowed, or that it isn't? Perhaps a couple of extra examples could be added to this section demonstrating what would and wouldn't be allowed? Regards, -- Rowan Tommins [IMSoP]