Skip to content

Commit b6f914f

Browse files
committed
Temporary revert
1 parent b61d481 commit b6f914f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Psalm/Internal/Type/Comparator/UnionTypeComparator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ public static function isContainedBy(
247247
}
248248

249249
if ($input_type_part instanceof Atomic\TIterable
250-
&& $container_type->hasIterableType($codebase)
250+
&& ($container_type->hasArray() || $container_type->containsClassLike('traversable'))
251251
) {
252252
$scalar_type_match_found = false;
253253
$is_atomic_contained_by = true;

0 commit comments

Comments
 (0)