From 04e6a13e04c2a2fd8a8726038cc8bad6b22150f1 Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Mon, 11 Nov 2024 20:32:45 +0100 Subject: [PATCH] Fix PHPStan --- src/Provider/AfterUrlProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Provider/AfterUrlProvider.php b/src/Provider/AfterUrlProvider.php index 58a4de1..9181aeb 100644 --- a/src/Provider/AfterUrlProvider.php +++ b/src/Provider/AfterUrlProvider.php @@ -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); }