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

Add back fix

This commit is contained in:
Brown 2020-07-10 17:13:11 -04:00
parent 8d022307d2
commit 9177ad5ce0

View File

@ -89,7 +89,7 @@ class IncDecExpressionAnalyzer
$context->assigned_var_ids[$var_id] = true; $context->assigned_var_ids[$var_id] = true;
$context->possibly_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( $statements_analyzer->registerVariableAssignment(
$var_id, $var_id,
$location $location