Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ptomulik committed Feb 27, 2023
1 parent 506d6dd commit 751cd1a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -514,11 +514,8 @@ private static function updateArrayAssignmentChildType(
$array_atomic_key_type = Type::getArrayKey();
}

if ($offset_already_existed
&& $parent_var_id
&& ($parent_type = $context->vars_in_scope[$parent_var_id] ?? null)
) {
if ($parent_type->hasList() && strpos($parent_var_id, '[') === false) {
if ($parent_var_id && ($parent_type = $context->vars_in_scope[$parent_var_id] ?? null)) {
if ($offset_already_existed && $parent_type->hasList() && strpos($parent_var_id, '[') === false) {
$array_atomic_type_list = $value_type;
} elseif ($parent_type->hasClassStringMap()
&& $key_type
Expand Down

0 comments on commit 751cd1a

Please sign in to comment.