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.'); }