PHP RFC: Locked Classes

php.internals

Glash Gnome

4 years ago
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,

Claude Pache

4 years ago
> Le 5 nov. 2021 à 11:40, Glash Gnome <glash.gnome@gmail.com> 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 <https://wiki.php.net/rfc/deprecate_dynamic_properties> —Claude