From d19032c2a1f8a460b5b5ebb934464f22d1509027 Mon Sep 17 00:00:00 2001 From: Patrick Date: Tue, 18 Jan 2022 00:10:58 +0100 Subject: [PATCH] Update Cart.php --- src/Cart.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cart.php b/src/Cart.php index 8d69209..08e7dde 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -751,7 +751,7 @@ class Cart * * @return \Gloudemans\Shoppingcart\CartItem */ - private function createCartItem($id, string $name, $qty, $price, $weight, array $options) : CartItem + private function createCartItem($id, ?string $name = null, $qty, $price, $weight, array $options) : CartItem { if ($id instanceof Buyable) { $cartItem = CartItem::fromBuyable($id, $qty ?: []);