We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1914b49 commit a746655Copy full SHA for a746655
src/Model/Response/PaymentTransaction.php
@@ -63,7 +63,7 @@ public static function createFromResponse(array $data): self
63
{
64
$cartItems = [];
65
66
- foreach ($data['cart'] as $cartItem) {
+ foreach (($data['cart'] ?? []) as $cartItem) {
67
$cartItems[] = PaymentTransactionCartItem::createFromResponse($cartItem);
68
}
69
0 commit comments