mirror of
https://github.com/danog/psalm.git
synced 2025-01-21 21:31:13 +01:00
unset instead of reassign
This commit is contained in:
parent
7891e6136a
commit
146d02e3e1
@ -26,6 +26,6 @@ class CaseScope
|
||||
|
||||
public function __destruct()
|
||||
{
|
||||
$this->parent_context = null;
|
||||
unset($this->parent_context);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user