Inspectopedia
 
2024.3

Hooked property cannot be unset

Error
New
Last modified: 03 December 2024

Reports an attempt to call the unset() function on a hooked property.

In PHP 8.4 and later, usage of get or set hooks with properties disallows the unset() write operation on such properties. For details, see PHP RFC: Property hooks.