We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9c5f58 + b5c7820 commit 970caf8Copy full SHA for 970caf8
Service/Anonymize/Anonymizer/Number.php
@@ -29,8 +29,8 @@ public function __construct(
29
?int $min = null,
30
?int $max = null
31
) {
32
- $this->min = $min !== null && $min < PHP_INT_MIN ? PHP_INT_MIN : $min;
33
- $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;
34
}
35
36
/**
0 commit comments