We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b61d481 commit b6f914fCopy full SHA for b6f914f
src/Psalm/Internal/Type/Comparator/UnionTypeComparator.php
@@ -247,7 +247,7 @@ public static function isContainedBy(
247
}
248
249
if ($input_type_part instanceof Atomic\TIterable
250
- && $container_type->hasIterableType($codebase)
+ && ($container_type->hasArray() || $container_type->containsClassLike('traversable'))
251
) {
252
$scalar_type_match_found = false;
253
$is_atomic_contained_by = true;
0 commit comments