From 321f41dbfdbe0725f42ebdbe620cd9c5348c589e Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 17:53:34 +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 aae56b5..54e2d32 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -117,7 +117,7 @@ class Cart * * @return \Gloudemans\Shoppingcart\CartItem */ - public function add($id, ?string $name = null, $qty = null, ?Money $price = null, $weight = 0, array $options = []): CartItem + public function add($id, ?string $name = null, $qty = 1, ?Money $price = null, $weight = 0, array $options = []): CartItem { if ($this->isMulti($id)) { return array_map(function ($item) {