Skip to content

Commit

Permalink
OversizedArrayType contains at least 1 element
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm authored and ondrejmirtes committed Dec 19, 2022
1 parent 5c71ab2 commit ab6c591
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Type/Accessory/OversizedArrayType.php
Expand Up @@ -188,7 +188,7 @@ public function isIterableAtLeastOnce(): TrinaryLogic

public function getArraySize(): Type
{
return IntegerRangeType::fromInterval(0, null);
return IntegerRangeType::fromInterval(1, null);
}

public function getIterableKeyType(): Type
Expand Down

0 comments on commit ab6c591

Please sign in to comment.