From f31c153e3e6a4898b9498d412be39086086d2e3b Mon Sep 17 00:00:00 2001 From: Cristian Date: Mon, 21 Oct 2019 19:00:34 +0200 Subject: [PATCH] Update CartItem.php weight variable in if block --- src/CartItem.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CartItem.php b/src/CartItem.php index 5a49ef2..667bedc 100644 --- a/src/CartItem.php +++ b/src/CartItem.php @@ -98,7 +98,7 @@ class CartItem implements Arrayable, Jsonable if (strlen($price) < 0 || !is_numeric($price)) { throw new \InvalidArgumentException('Please supply a valid price.'); } - if (strlen($price) < 0 || !is_numeric($weight)) { + if (strlen($weight) < 0 || !is_numeric($weight)) { throw new \InvalidArgumentException('Please supply a valid weight.'); }