We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89f9112 commit 1844ba5Copy full SHA for 1844ba5
src/Psalm/Internal/Analyzer/Statements/Expression/AssignmentAnalyzer.php
@@ -950,7 +950,7 @@ public static function analyzeAssignmentRef(
950
// Remove old reference parent node so previously referenced variable usage doesn't count as reference usage
951
$old_type = $context->vars_in_scope[$lhs_var_id];
952
foreach ($old_type->parent_nodes as $old_parent_node_id => $_) {
953
- if (str_starts_with($old_parent_node_id, "$lhs_var_id-")) {
+ if (str_starts_with($old_parent_node_id, "$lhs_var_id from ")) {
954
unset($old_type->parent_nodes[$old_parent_node_id]);
955
}
956
0 commit comments