From fcd683d8583f3f45ee0afd5b834e129f31e95d82 Mon Sep 17 00:00:00 2001 From: "renzheng.wang" Date: Thu, 14 Dec 2023 13:38:38 +0800 Subject: [PATCH 1/3] fix lint issue --- src/Core/Exception/UCloudException.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Core/Exception/UCloudException.php b/src/Core/Exception/UCloudException.php index 26551595..ce87320f 100644 --- a/src/Core/Exception/UCloudException.php +++ b/src/Core/Exception/UCloudException.php @@ -1,13 +1,11 @@ response; } From f682645d23f44fb99397048370595e6d5aac0377 Mon Sep 17 00:00:00 2001 From: "renzheng.wang" Date: Thu, 14 Dec 2023 13:43:07 +0800 Subject: [PATCH 2/3] fix type hint --- src/Core/Exception/UCloudException.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Core/Exception/UCloudException.php b/src/Core/Exception/UCloudException.php index ce87320f..113fcd41 100644 --- a/src/Core/Exception/UCloudException.php +++ b/src/Core/Exception/UCloudException.php @@ -33,7 +33,7 @@ class UCloudException extends Exception /** * Original Response * - * @var Response + * @var Response|null */ private $response; /** @@ -44,7 +44,7 @@ class UCloudException extends Exception * @param int|int $retCode * @param Throwable|null $previous * @param string $requestId - * @param Response $response + * @param Response|null $response */ public function __construct($type, $message = "", $retCode = 0, $previous = null, $requestId = "", $response = null) { @@ -77,7 +77,7 @@ public function getRequestId() /** * Get response * - * @return Response + * @return Response|null */ public function getResponse() { From 2c5635f02e1f13861657b09698de9bdd8297944c Mon Sep 17 00:00:00 2001 From: "renzheng.wang" Date: Thu, 14 Dec 2023 13:54:58 +0800 Subject: [PATCH 3/3] fix grammer issue --- src/Core/Exception/UCloudException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Exception/UCloudException.php b/src/Core/Exception/UCloudException.php index 4d9b682f..113fcd41 100644 --- a/src/Core/Exception/UCloudException.php +++ b/src/Core/Exception/UCloudException.php @@ -50,7 +50,7 @@ public function __construct($type, $message = "", $retCode = 0, $previous = null { $this->type = $type; $this->requestId = $requestId; - $this->response = $response + $this->response = $response; parent::__construct($message, $retCode, $previous); }