> Le 5 nov. 2021 à 11:40, Glash Gnome a écrit :
>
> Hi internals,
>
> I was reading the RFC https://wiki.php.net/rfc/locked-classes
>
Note that this RFC is marked as “withdrawn”, and that an alternative approach
has been proposed in:
https://wiki.php.net/rfc/deprecate_dynamic_properties
<
Hi internals,
I was reading the RFC https://wiki.php.net/rfc/locked-classes
Have you thought about the possibility of using the keyword "*struct*"?
struct TestClass {
// locked properties
}
class TestClass {
// dynamic properties
}
Best regards,