Re: static properties in readonly classes
| From: | Marco Aurélio Deleu | Date: | Mon, 09 Jun 2025 02:40:15 +0000 |
| Subject: | Re: static properties in readonly classes | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-127628@lists.php.net to get a copy of this message | ||
> On 8 Jun 2025, at 15:12, Rob Landers <rob@bottled.codes> wrote:
>
>
> Hello internals,
>
> It just feels weird to say that "static properties aren’t allowed, but you can create
> static properties by embedding them in a method!" In other words, it feels inconsistent.
>
> — Rob
To me it feels like it’s working as intended. Similar to private properties being accessible via
reflection. The syntax is well designed for the natural flow, but if you want to break the warranty
seal go nuts.