diff --git a/src/Generator.php b/src/Generator.php index 4ada416..c1e816e 100644 --- a/src/Generator.php +++ b/src/Generator.php @@ -357,7 +357,7 @@ public function style(string $style, float $size = 0.5): self throw new InvalidArgumentException("\$style must be square, dot, or round. {$style} is not a valid."); } - if ($size < 0 || $size >= 1) { + if ($size <= 0 || $size > 1) { throw new InvalidArgumentException("\$size must be between 0 and 1. {$size} is not valid."); }