Unsetting Properties SurprisesΒΆ

Unsetting properties is always a suprise.

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.

../_images/unset_properties.png