# PHP RFC: Locked Classes

- Thread: https://externals.io/message/116306
- Original archive: https://news-web.php.net/php.internals/116306
- Started by Glash Gnome on 2021-11-05T10:40:13+00:00
- Messages: 2
- RFC: Locked Classes (Withdrawn) — https://externals.io/rfc/locked-classes.md
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #116306 — Glash Gnome — 2021-11-05T10:40:13+00:00

URL: https://externals.io/message/116306#116306

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,

---

## #116307 — Claude Pache — 2021-11-05T11:28:36+00:00

URL: https://externals.io/message/116306#116307 · In reply to: #116306

> 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
