Post #3859817
2026-07-16 13:46 UTC
#PHP I've been toying around with hooks lately, and I have mixed feelings about them.
On the one hand, they can be quite handy in certain situations. On the other, the trade-off of losing the readonly modifier for the entire class is a real headache.
For instance, you loose, in memory cache inside your class. Not sure if I like or dislike this consequence. And I am sure they are other things being lost with it
Replies (1)
-
@ramsey@phpc.social 2026-07-16 13:50
@nyamsprod@phpc.social What do you mean by losing an in-memory cache of your class?