mirror of
https://github.com/kevin-DL/LaravelShoppingcart.git
synced 2026-01-23 23:51:25 +00:00
Update CartItem.php
Remove strlen from weight
This commit is contained in:
@@ -97,7 +97,7 @@ class CartItem implements Arrayable, Jsonable
|
|||||||
if (strlen($price) < 0 || !is_numeric($price)) {
|
if (strlen($price) < 0 || !is_numeric($price)) {
|
||||||
throw new \InvalidArgumentException('Please supply a valid 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.');
|
throw new \InvalidArgumentException('Please supply a valid weight.');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user