diff --git a/Service/Anonymize/Anonymizer/Number.php b/Service/Anonymize/Anonymizer/Number.php index 83b5874..960cbf5 100644 --- a/Service/Anonymize/Anonymizer/Number.php +++ b/Service/Anonymize/Anonymizer/Number.php @@ -29,8 +29,8 @@ public function __construct( ?int $min = null, ?int $max = null ) { - $this->min = $min !== null && $min < PHP_INT_MIN ? PHP_INT_MIN : $min; - $this->max = $max !== null && $max < PHP_INT_MAX ? PHP_INT_MAX : $max; + $this->min = $min < PHP_INT_MIN ? PHP_INT_MIN : $min; + $this->max = $max !== null && $max > PHP_INT_MAX ? PHP_INT_MAX : $max; } /**