From 6664cb8834b272e10053718ea5ba66eb8df01cd8 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 20:28:06 +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 4934fa0..19ef338 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -119,7 +119,7 @@ class Cart * * @return \Gloudemans\Shoppingcart\CartItem */ - public function add(int|string|Buyable|iterable $id, null|string|int $nameOrQty = null, null|int|array $qtyOrOptions = null, ?Money $price = null, ?int $weight = null, ?CartItemOptions $options = null): CartItem|array + public function add(int|string|Buyable|iterable $id, null|string|int $nameOrQty = null, null|int|CartItemOptions $qtyOrOptions = null, ?Money $price = null, ?int $weight = null, ?CartItemOptions $options = null): CartItem|array { /* Allow adding a CartItem by raw parameters */ if (is_int($id) || is_string($id)) {