Skip to content

Commit 3a77227

Browse files
committed
refactor: Update Max/Min Default Float Value
1 parent e410e3d commit 3a77227

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

WebFiori/Http/RequestParameter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,8 +722,8 @@ public function setType(string $type) : bool {
722722
$this->type = $sType;
723723

724724
if ($sType == ParamType::DOUBLE) {
725-
$this->maxVal = defined('PHP_FLOAT_MAX') ? PHP_FLOAT_MAX : 1.7976931348623E+308;
726-
$this->minVal = defined('PHP_FLOAT_MIN') ? PHP_FLOAT_MIN : 2.2250738585072E-308;
725+
$this->maxVal = 1e50;
726+
$this->minVal = -1e50;
727727
} else if ($sType == ParamType::INT) {
728728
$this->minVal = defined('PHP_INT_MIN') ? PHP_INT_MIN : ~PHP_INT_MAX;
729729
$this->maxVal = PHP_INT_MAX;

0 commit comments

Comments
 (0)