mirror of
https://github.com/danog/psalm.git
synced 2024-12-04 18:48:03 +01:00
Fix
This commit is contained in:
parent
45c26d0cbf
commit
d0d7c46d26
@ -80,9 +80,12 @@ class ArrayTypeComparator
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($container_type_part instanceof TKeyedArray
|
if ($container_type_part instanceof TKeyedArray
|
||||||
&& $input_type_part instanceof TKeyedArray
|
|
||||||
&& $container_type_part->is_list
|
&& $container_type_part->is_list
|
||||||
&& !$input_type_part->is_list
|
&& (
|
||||||
|
($input_type_part instanceof TKeyedArray
|
||||||
|
&& !$input_type_part->is_list)
|
||||||
|
|| $input_type_part instanceof TArray
|
||||||
|
)
|
||||||
) {
|
) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -38,6 +38,14 @@ class KeyedArrayComparator
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($container_type_part instanceof TKeyedArray
|
||||||
|
&& $container_type_part->is_list
|
||||||
|
&& $input_type_part instanceof TKeyedArray
|
||||||
|
&& !$input_type_part->is_list
|
||||||
|
) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
$all_types_contain = true;
|
$all_types_contain = true;
|
||||||
|
|
||||||
$input_properties = $input_type_part->properties;
|
$input_properties = $input_type_part->properties;
|
||||||
|
Loading…
Reference in New Issue
Block a user