mirror of
https://github.com/danog/psalm.git
synced 2024-12-13 09:47:29 +01:00
Possibly fix
This commit is contained in:
parent
5b31b2731b
commit
6fa5da95ac
@ -87,6 +87,9 @@ class ArrayTypeComparator
|
|||||||
|| $input_type_part instanceof TArray
|
|| $input_type_part instanceof TArray
|
||||||
)
|
)
|
||||||
) {
|
) {
|
||||||
|
if ($atomic_comparison_result) {
|
||||||
|
$atomic_comparison_result->type_coerced = true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,6 +43,9 @@ class KeyedArrayComparator
|
|||||||
&& $input_type_part instanceof TKeyedArray
|
&& $input_type_part instanceof TKeyedArray
|
||||||
&& !$input_type_part->is_list
|
&& !$input_type_part->is_list
|
||||||
) {
|
) {
|
||||||
|
if ($atomic_comparison_result) {
|
||||||
|
$atomic_comparison_result->type_coerced = true;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user