Cannot unset $this¶
Description¶
It is never possible to unset the pseudo-variable $this, inside a class or outside. Actually, it is also never allowed to write to it. In short, it is possible to read $this, and nothing more.
Example¶
<?php
unset($this);
?>
Solutions¶
Remove this call to unset.