This commit is contained in:
2020-10-30 02:06:53 +08:00
parent c61f2c8f71
commit 5e7a0cfa39
+1 -1
View File
@@ -220,7 +220,7 @@ class HttpParams
if (is_null($int)) { if (is_null($int)) {
$length = 0; $length = 0;
} else { } else {
$length = strlen(floatval($int)); $length = strlen((string)$int);
} }
if (!is_numeric($int) || intval($int) != $int) { if (!is_numeric($int) || intval($int) != $int) {
throw new RequestException("The request parameter $name must integer."); throw new RequestException("The request parameter $name must integer.");