Update CartItem.php

weight variable in if block
This commit is contained in:
Cristian
2019-10-21 19:00:34 +02:00
parent 015b2a8607
commit f31c153e3e

View File

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