From 1922884abd086b9c938aa1a588dd9432d91f2b76 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 21:53:50 +0100 Subject: [PATCH] Update CartItem.php --- src/CartItem.php | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/CartItem.php b/src/CartItem.php index 9bec287..e50a301 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -89,16 +89,7 @@ class CartItem implements Arrayable, Jsonable */ public ?string $instance = null; - /** - * CartItem constructor. - * - * @param int|string $id - * @param string $name - * @param float $price - * @param float $weight - * @param array $options - */ - public function __construct($id, string $name, Money $price, int $qty = 1, int $weight = 0, ?CartItemOptions $options = null) + public function __construct(int|string $id, string $name, Money $price, int $qty = 1, int $weight = 0, ?CartItemOptions $options = null) { if (!is_string($id) && !is_int($id)) { throw new \InvalidArgumentException('Please supply a valid identifier.');