Unsetting Properties Surprises

no-email (Damien Seguy), Damien Seguy
Fri, 20 Oct 2023 00:00:00 +0000

Unsetting properties is always a surprise.
First, if the property was typed, it yields a Fatal Error, as the property cannot be accessed before initialization. And, the unset destroyed the property.
Also, checking an unset property with property_exists() is done against the class definition, not the current object state.