From 9d6a5dab8c34c20a890157cf61b75607d2fb3ec4 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sun, 23 Jun 2019 00:11:50 +0200 Subject: [PATCH] Update CartItem.php Remove strlen from weight --- src/CartItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CartItem.php b/src/CartItem.php index e5ac8ac..8066d8d 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 (strlen($weight) < 0 || !is_numeric($weight)) { + if (!is_numeric($weight)) { throw new \InvalidArgumentException('Please supply a valid weight.'); }