Skip to content

Commit

Permalink
Update WebServiceWriter.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Jan 15, 2024
1 parent b6000c6 commit 9a1bae9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webfiori/framework/writers/WebServiceWriter.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,10 @@ private function appendParam($param) {
}

if ($param->getType() == ParamType::INT || $param->getType() == ParamType::DOUBLE) {
if ($param->getMinValue() !== null) {
if ($param->getMinValue() !== null && ($param->getMinValue() != PHP_INT_MIN && $param->getMinValue() != PHP_FLOAT_MIN)) {
$this->append("ParamOption::MIN => ".$param->getMinValue().",", 4);
}
if ($param->getMaxValue() !== null) {
if ($param->getMaxValue() !== null && ($param->getMaxValue() != PHP_INT_MAX && $param->getMaxValue() != PHP_FLOAT_MAX)) {
$this->append("ParamOption::MAX => ".$param->getMinValue().",", 4);
}
}
Expand Down

0 comments on commit 9a1bae9

Please sign in to comment.