Skip to content

Commit

Permalink
fix php7.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Naoray committed Dec 3, 2024
1 parent cfea22e commit f3de946
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Http/Requests/GetPaymentCaptureRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Http/Requests/GetPaymentChargebackRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3de946

Please sign in to comment.