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