From e9927ccc8f366bc5647dbd283cefeb6703037857 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 19:30:31 +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 4d3bbcc..29cf5ea 100644 --- a/src/Cart.php +++ b/src/Cart.php @@ -118,7 +118,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, array $options = []): 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, array $options = []): CartItem|array { /* Allow adding a CartItem by raw parameters */ if (is_int($id) || is_string($id)) {