diff --git a/src/Type/IntersectionType.php b/src/Type/IntersectionType.php index d089303fb25..1aeaf6eb513 100644 --- a/src/Type/IntersectionType.php +++ b/src/Type/IntersectionType.php @@ -109,10 +109,6 @@ public function getArrays(): array { $arrays = []; foreach ($this->types as $type) { - if (!$type instanceof ArrayType) { - continue; - } - foreach ($type->getArrays() as $array) { $arrays[] = $array; }