From 1b498e6dae0d367aae44d981acaf52be63b62adc Mon Sep 17 00:00:00 2001 From: Brown Date: Mon, 6 Jul 2020 17:41:07 -0400 Subject: [PATCH] Remove unused variable --- .../Analyzer/Statements/Block/SwitchCaseAnalyzer.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php index b975f085c3c..566dd86c98f 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Block/SwitchCaseAnalyzer.php @@ -505,11 +505,6 @@ private static function handleNonReturningCase( } } - $vars = array_diff_key( - $case_context->vars_possibly_in_scope, - $original_context->vars_possibly_in_scope - ); - // if we're leaving this block, add vars to outer for loop scope if ($case_exit_type === 'continue') { if (!$context->loop_scope) {