2026-07-29 14:02 UTC
@jclermont@phpc.social My question always is: Why do you want a private/protected property? Is the internal that important or are you testing the incorrect thing?
Not because it can't be useful but more because most of the time it isn't needed.
So in fact my question is: do you need it more then once so a helper function is worth it?
Replies (1)
-
@jclermont@phpc.social 2026-08-11 23:49
@tvbeek@phpc.social It most often comes up in things like jobs, notifications, etc where there's no reason to make public properties and there's not a lot of logic to use as a proxy for the right data being passed in via constructor.