mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 13:51:44 +00:00
fix: correct add() @method signature to accept array input style
This commit is contained in:
@@ -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<string, mixed> $id, string|null $name = null, float|null $price = null, int|float|null $quantity = null, array<string, mixed> $attributes = [], CartCondition|array<mixed> $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()
|
||||
|
||||
Reference in New Issue
Block a user