Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
Prometee committed Nov 11, 2024
1 parent 9a6b92a commit 04e6a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/AfterUrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ public function __construct(

public function getUrl(PaymentRequestInterface $paymentRequest, string $type): string
{
/** @var string[] $responseData */
$responseData = $paymentRequest->getResponseData();
Assert::isArray($responseData, 'The payment request responseData must be an array.');

return $responseData[$type] ?? $this->defaultAfterPayUrlProvider->getUrl($paymentRequest, $type);
}
Expand Down

0 comments on commit 04e6a13

Please sign in to comment.