1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-13 09:47:29 +01:00

Possibly fix

This commit is contained in:
Daniil Gentili 2022-12-04 19:37:45 +01:00
parent 5b31b2731b
commit 6fa5da95ac
2 changed files with 6 additions and 0 deletions

View File

@ -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;
} }

View File

@ -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;
} }