From 0c36a1d72e498eac2e5924a56200a764e93a2497 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 23 Jun 2019 00:24:25 +0200 Subject: [PATCH] Update CartItem.php Revert last change --- src/CartItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CartItem.php b/src/CartItem.php index 8066d8d..16b448b 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -97,7 +97,7 @@ class CartItem implements Arrayable, Jsonable if (strlen($price) < 0 || !is_numeric($price)) { throw new \InvalidArgumentException('Please supply a valid price.'); } - if (!is_numeric($weight)) { + if (strlen($price) < 0 || !is_numeric($weight)) { throw new \InvalidArgumentException('Please supply a valid weight.'); }