Skip to content

Commit c29ce73

Browse files
committed
fix
1 parent 70b2e0d commit c29ce73

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Type/IntersectionType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,11 +291,11 @@ public function isAcceptedBy(Type $acceptingType, bool $strictTypes): AcceptsRes
291291
{
292292
$results = [];
293293
foreach ($this->types as $innerType) {
294-
$isAcceptedBy = $acceptingType->isAcceptedBy($innerType, $strictTypes);
295-
294+
$isAcceptedBy = $acceptingType->accepts($innerType, $strictTypes);
296295
if ($isAcceptedBy->yes()) {
297296
return AcceptsResult::createYes();
298297
}
298+
$results[] = $isAcceptedBy;
299299
}
300300
$result = AcceptsResult::maxMin(...$results);
301301

0 commit comments

Comments
 (0)