From 9f9df6a8f0b0c53c47090a04420caf957a20b1ab Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 19:08:55 +0100 Subject: [PATCH] Update CartItem.php --- src/CartItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CartItem.php b/src/CartItem.php index 9f316fd..35b3814 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -228,7 +228,7 @@ class CartItem implements Arrayable, Jsonable */ public static function fromBuyable(Buyable $item, int $qty = 1, ?CartItemOptions $options = null) : self { - $options = $options ?: new CartItemOptions([]) + $options = $options ?: new CartItemOptions([]); return new self($item->getBuyableIdentifier($options), $item->getBuyableDescription($options), $item->getBuyablePrice($options), $qty, $item->getBuyableWeight($options), $options); }