Update CartItem.php

Remove strlen from weight
This commit is contained in:
Patrick
2019-06-23 00:11:50 +02:00
committed by GitHub
parent 8f186e5edf
commit 9d6a5dab8c

View File

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