Skip to content
Permalink
Browse files

Refine assignment somewhat

  • Loading branch information
muglug committed Dec 22, 2019
1 parent 141bfd3 commit ee35db5a3b6939c8df8bd04d83d47b9b678c2138
@@ -291,7 +291,6 @@ public static function updateArrayType(
}

$context->vars_in_scope[$rooted_parent_id] = $array_type;
$context->assigned_var_ids[$rooted_parent_id] = true;
$context->possibly_assigned_var_ids[$rooted_parent_id] = true;
}

@@ -342,8 +341,6 @@ public static function updateArrayType(
}

$context->vars_in_scope[$array_var_id] = clone $assignment_type;

$context->assigned_var_ids[$array_var_id] = true;
$context->possibly_assigned_var_ids[$array_var_id] = true;
}

@@ -457,7 +454,6 @@ public static function updateArrayType(
if ($root_var_id) {
$array_var_id = $root_var_id . implode('', $var_id_additions);
$context->vars_in_scope[$array_var_id] = clone $child_stmt_type;
$context->assigned_var_ids[$array_var_id] = true;
$context->possibly_assigned_var_ids[$array_var_id] = true;
}
}

0 comments on commit ee35db5

Please sign in to comment.
You can’t perform that action at this time.