From 80123f243f16b5258dafdb194168ef848f514f38 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 5 Feb 2022 19:39:28 +0100 Subject: [PATCH] Update CartItem.php --- src/CartItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CartItem.php b/src/CartItem.php index 6efbece..b792912 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -247,7 +247,7 @@ class CartItem implements Arrayable, Jsonable * * @param int|string $id */ - public static function fromAttributes($id, string $name, Money $price, int $weight, array $options = []) : self + public static function fromAttributes(int|string $id, string $name, Money $price, int $qty, int $weight, array $options = []) : self { return new self($id, $name, $price, $weight, $options); }