I just stumbled upon a thing in the PHP manual that is new to me…
Casting a variable to null will remove the variable and unset its value. (Source)
Now I wonder how this can be done… I tried (null) and (NULL) but it seems to be interpreted as the value null, not the type null.
I know this question must sound ridiculous, but does somebody know how to cast to null?
use (unset) instead of (null).