From 37a05029dd0a9505f34ba42ecb65df8360fbc1e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AD=B1=E6=B4=9B=E6=B4=9B?= <1031601644@qq.com> Date: Sat, 28 Jun 2025 21:23:04 +0800 Subject: [PATCH] fix (swlib#156) --- src/Response.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Response.php b/src/Response.php index 917663c..f313ad9 100755 --- a/src/Response.php +++ b/src/Response.php @@ -100,7 +100,7 @@ function __construct(Request $request) $e_level = $request->getExceptionReport(); $exception = null; $should_be_thrown = false; - $status = ($this->statusCode / 100) % 10; + $status = (int)($this->statusCode / 100) % 10; switch ($status) { case 2: $this->success = true;