From de0ddfd4803772c5c9cdf40a62a364348473cfbe Mon Sep 17 00:00:00 2001 From: Deeka Wong Date: Thu, 9 May 2024 11:07:37 +0800 Subject: [PATCH] feat: Update PendingRequest to use null coalescing operator (#618) Co-authored-by: Deeka Wong <8337659+huangdijia@users.noreply.github.com> --- src/PendingRequest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PendingRequest.php b/src/PendingRequest.php index 1b8d34c..6ddc11f 100644 --- a/src/PendingRequest.php +++ b/src/PendingRequest.php @@ -60,7 +60,7 @@ class PendingRequest /** * The Guzzle client instance. * - * @var Client + * @var Client|null */ protected $client; @@ -1440,7 +1440,7 @@ protected function requestsReusableClient() */ protected function getReusableClient() { - return $this->client = $this->client ?: $this->createClient($this->buildHandlerStack()); + return $this->client ??= $this->createClient($this->buildHandlerStack()); } /**