Skip to content

Commit f06dcd7

Browse files
committed
Cleanup ArrayType->tryRemove()
1 parent 0b11390 commit f06dcd7

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/Type/ArrayType.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -863,10 +863,6 @@ public function traverseSimultaneously(Type $right, callable $cb): Type
863863

864864
public function tryRemove(Type $typeToRemove): ?Type
865865
{
866-
if ($typeToRemove->isConstantArray()->yes() && $typeToRemove->isIterableAtLeastOnce()->no()) {
867-
return TypeCombinator::intersect($this, new NonEmptyArrayType());
868-
}
869-
870866
if ($typeToRemove->isSuperTypeOf(new ConstantArrayType([], []))->yes()) {
871867
return TypeCombinator::intersect($this, new NonEmptyArrayType());
872868
}

0 commit comments

Comments
 (0)