From 25c5841fc1582fe6bbf9228a3d6fc700d495d518 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 17:55:32 +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 54e2d32..0bd4bf2 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 = 1, ?Money $price = null, $weight = 0, array $options = []): CartItem + public function add($id, ?string $name = null, ?int $qty = null, ?Money $price = null, ?int $weight = null, array $options = []): CartItem { if ($this->isMulti($id)) { return array_map(function ($item) {