Skip to content

Commit 02de658

Browse files
authored
Discard changes to src/Type/IntersectionType.php
1 parent 29ba078 commit 02de658

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/Type/IntersectionType.php

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,6 @@ public function accepts(Type $otherType, bool $strictTypes): AcceptsResult
194194
$result = $result->and($type->accepts($otherType, $strictTypes));
195195
}
196196

197-
if (!$result->yes()
198-
&& $this->isArray()->yes()
199-
&& $this->isIterableAtLeastOnce()->yes()
200-
&& $otherType->isArray()->yes()
201-
&& $otherType->isIterableAtLeastOnce()->yes()
202-
&& $this->isSuperTypeOf($otherType)->yes()
203-
) {
204-
return AcceptsResult::createYes();
205-
}
206-
207197
if (!$result->yes()) {
208198
$isList = $otherType->isList();
209199
$reasons = $result->reasons;

0 commit comments

Comments
 (0)