From 10ab30f4e884e3cda421e46cb797ad12baf6ad03 Mon Sep 17 00:00:00 2001 From: Joel Male Date: Fri, 29 May 2026 14:14:34 +1000 Subject: [PATCH] fix: correct add() @method signature to accept array input style --- src/Facades/CartFacade.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Facades/CartFacade.php b/src/Facades/CartFacade.php index f56f97f..05e1eb9 100644 --- a/src/Facades/CartFacade.php +++ b/src/Facades/CartFacade.php @@ -14,7 +14,7 @@ * * @method static ItemCollection|null get(int|string $itemId) * @method static bool has(int|string $itemId) - * @method static void add(int|string $id, string $name, int|float $price, int $quantity, array $attributes = [], CartCondition|array $conditions = [], string $associatedModel = '') + * @method static self add(string|int|array $id, string|null $name = null, float|null $price = null, int|float|null $quantity = null, array $attributes = [], CartCondition|array $conditions = [], string|null $associatedModel = null) * @method static bool update(int|string $id, array $data) * @method static void remove(int|string $id) * @method static void clear()