Skip to content

Commit 1844ba5

Browse files
committed
Fix
1 parent 89f9112 commit 1844ba5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -950,7 +950,7 @@ public static function analyzeAssignmentRef(
950950
// Remove old reference parent node so previously referenced variable usage doesn't count as reference usage
951951
$old_type = $context->vars_in_scope[$lhs_var_id];
952952
foreach ($old_type->parent_nodes as $old_parent_node_id => $_) {
953-
if (str_starts_with($old_parent_node_id, "$lhs_var_id-")) {
953+
if (str_starts_with($old_parent_node_id, "$lhs_var_id from ")) {
954954
unset($old_type->parent_nodes[$old_parent_node_id]);
955955
}
956956
}

0 commit comments

Comments
 (0)