Good day! Dear experts, please tell me - is it possible to intercept the change in behavior, already previously defined properties?
final class a { public $name = 'default'; } $a = new a; $a->name = 1; echo $a->name; // 1
It is necessary to make it so that this property cannot be changed dynamically, but at the same time, so that it is public. Dynamic add-ons were able to be tracked, but already previously created I cannot understand how to intercept.