From e306e84774160469ccd81751903164d06e2c6441 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 29 Mar 2021 18:07:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Http/HttpParams.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HttpServer/Http/HttpParams.php b/HttpServer/Http/HttpParams.php index 34c76497..af009d5c 100644 --- a/HttpServer/Http/HttpParams.php +++ b/HttpServer/Http/HttpParams.php @@ -331,7 +331,7 @@ class HttpParams */ private function between($string, $min, $max): mixed { - $_length = mb_strlen($string); + $_length = mb_strlen((string)$string); if ($min !== NULL && $_length < $min) { throw new RequestException("The minimum value cannot be lower than $min, has length $_length"); }