1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 22:01:48 +01:00

fix sealed array combination

This commit is contained in:
orklah 2022-11-30 23:26:34 +01:00
parent 870f5817d2
commit 3957eb753a

View File

@ -1507,6 +1507,7 @@ class TypeCombiner
|| ($combination->array_sometimes_filled && $overwrite_empty_array) || ($combination->array_sometimes_filled && $overwrite_empty_array)
|| ($combination->objectlike_entries || ($combination->objectlike_entries
&& $combination->objectlike_sealed && $combination->objectlike_sealed
&& ($combination->array_min_counts[0] ?? false) !== true
&& $overwrite_empty_array) && $overwrite_empty_array)
) { ) {
if ($combination->all_arrays_lists) { if ($combination->all_arrays_lists) {