1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 05:41:20 +01:00

unset instead of reassign

This commit is contained in:
orklah 2021-09-25 17:28:51 +02:00
parent 7891e6136a
commit 146d02e3e1
2 changed files with 3 additions and 3 deletions

View File

@ -26,6 +26,6 @@ class CaseScope
public function __destruct()
{
$this->parent_context = null;
unset($this->parent_context);
}
}

View File

@ -67,7 +67,7 @@ class LoopScope
public function __destruct()
{
$this->loop_context = null;
$this->loop_parent_context = null;
unset($this->loop_context);
unset($this->loop_parent_context);
}
}