From 1a4074ca0c86231ee6b7ea65e9bb59e23824a279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AE=89=E6=AD=A3=E8=B6=85?= Date: Fri, 26 Jan 2024 22:37:51 +0800 Subject: [PATCH] Update HttpException.php #2788 --- src/Kernel/Exceptions/HttpException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Kernel/Exceptions/HttpException.php b/src/Kernel/Exceptions/HttpException.php index 8ab130d1f..c874706b0 100644 --- a/src/Kernel/Exceptions/HttpException.php +++ b/src/Kernel/Exceptions/HttpException.php @@ -38,7 +38,7 @@ class HttpException extends Exception * @param null $formattedResponse * @param int|null $code */ - public function __construct($message, ResponseInterface $response = null, $formattedResponse = null, $code = null) + public function __construct($message, ResponseInterface $response = null, $formattedResponse = null, $code = 0) { parent::__construct($message, $code);