From f3de9460df524039b9262c8e1c2e48cea3d4f6b9 Mon Sep 17 00:00:00 2001 From: Krishan Koenig Date: Tue, 3 Dec 2024 12:44:09 +0100 Subject: [PATCH] fix php7.4 compatibility --- src/Http/Requests/GetPaymentCaptureRequest.php | 2 +- src/Http/Requests/GetPaymentChargebackRequest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Http/Requests/GetPaymentCaptureRequest.php b/src/Http/Requests/GetPaymentCaptureRequest.php index da1437d2..4c5e1864 100644 --- a/src/Http/Requests/GetPaymentCaptureRequest.php +++ b/src/Http/Requests/GetPaymentCaptureRequest.php @@ -34,7 +34,7 @@ public function __construct(string $paymentId, string $captureId, ?GetPaymentCap protected function defaultQuery(): array { - return $this->query?->toArray() ?? []; + return $this->query ? $this->query->toArray() : []; } public function resolveResourcePath(): string diff --git a/src/Http/Requests/GetPaymentChargebackRequest.php b/src/Http/Requests/GetPaymentChargebackRequest.php index d1c029d5..8a18ca56 100644 --- a/src/Http/Requests/GetPaymentChargebackRequest.php +++ b/src/Http/Requests/GetPaymentChargebackRequest.php @@ -34,7 +34,7 @@ public function __construct(string $paymentId, string $chargebackId, ?GetPayment protected function defaultQuery(): array { - return $this->query?->toArray() ?? []; + return $this->query ? $this->query->toArray() : []; } public function resolveResourcePath(): string