From 9177ad5ce0b3cb4bd385ff368269aeddaaa7a384 Mon Sep 17 00:00:00 2001 From: Brown Date: Fri, 10 Jul 2020 17:13:11 -0400 Subject: [PATCH] Add back fix --- .../Analyzer/Statements/Expression/IncDecExpressionAnalyzer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Psalm/Internal/Analyzer/Statements/Expression/IncDecExpressionAnalyzer.php b/src/Psalm/Internal/Analyzer/Statements/Expression/IncDecExpressionAnalyzer.php index 482c3319c..894a4de57 100644 --- a/src/Psalm/Internal/Analyzer/Statements/Expression/IncDecExpressionAnalyzer.php +++ b/src/Psalm/Internal/Analyzer/Statements/Expression/IncDecExpressionAnalyzer.php @@ -89,7 +89,7 @@ class IncDecExpressionAnalyzer $context->assigned_var_ids[$var_id] = true; $context->possibly_assigned_var_ids[$var_id] = true; - if (!$context->inside_isset || !$context->inside_loop) { + if (!$context->inside_isset) { $statements_analyzer->registerVariableAssignment( $var_id, $location