Update Cart.php

This commit is contained in:
Patrick
2022-02-05 17:55:32 +01:00
committed by GitHub
parent 321f41dbfd
commit 25c5841fc1

View File

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