mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
bugfix: pass non-empty
information when reconciling iterable
Signed-off-by: Maximilian Bösing <2189546+boesing@users.noreply.github.com>
This commit is contained in:
parent
2d84b06cfa
commit
f482a5cb31
@ -2441,7 +2441,9 @@ class SimpleAssertionReconciler extends Reconciler
|
||||
|
||||
$redundant = false;
|
||||
} elseif ($type instanceof TIterable) {
|
||||
$array_types[] = Type::getListAtomic($type->type_params[1]);
|
||||
$array_types[] = $is_non_empty
|
||||
? Type::getNonEmptyListAtomic($type->type_params[1])
|
||||
: Type::getListAtomic($type->type_params[1]);
|
||||
|
||||
$redundant = false;
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user