From 966211e0523d2062e78366cd9a1bd726441293ff Mon Sep 17 00:00:00 2001 From: orklah Date: Sun, 26 Sep 2021 20:49:51 +0200 Subject: [PATCH] unused variable --- .../Internal/Analyzer/Statements/Expression/CallAnalyzer.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php index 1b94c2abf..c0412d8b1 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/CallAnalyzer.php @@ -191,17 +191,12 @@ class CallAnalyzer || $is_final) ) { $local_vars_in_scope = []; - $local_vars_possibly_in_scope = []; foreach ($context->vars_in_scope as $var_id => $type) { if (strpos($var_id, '$this->') === 0) { if ($type->initialized) { $local_vars_in_scope[$var_id] = $context->vars_in_scope[$var_id]; - if (isset($context->vars_possibly_in_scope[$var_id])) { - $local_vars_possibly_in_scope[$var_id] = $context->vars_possibly_in_scope[$var_id]; - } - unset($context->vars_in_scope[$var_id]); unset($context->vars_possibly_in_scope[$var_id]); }