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) {