From 1b65ebcf5a8c7c6f45d94b5281d685acd92a447d Mon Sep 17 00:00:00 2001 From: 7-ON <7onbor1@gmail.com> Date: Thu, 14 Dec 2023 18:32:12 +0700 Subject: [PATCH] Update RequestException.php Fix [info] Deprecated: Exception::__construct(): Passing null to parameter #1 ($message) of type string is deprecated (php 8.2) --- src/Exception/RequestException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exception/RequestException.php b/src/Exception/RequestException.php index 6119e0a..dc42159 100644 --- a/src/Exception/RequestException.php +++ b/src/Exception/RequestException.php @@ -117,7 +117,7 @@ private function setErrorProperties($errorProperties) public static function create(RequestInterface $request, ResponseInterface $response) { - $exception = new static(null, $request, $response); + $exception = new static('', $request, $response); if (!$response->getBody()->isReadable()) { return $exception;