mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +01:00
fix #4460
This commit is contained in:
parent
68fc72e139
commit
78e6545d7f
@ -514,11 +514,8 @@ class ArrayAssignmentAnalyzer
|
||||
$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
|
||||
|
Loading…
x
Reference in New Issue
Block a user