mirror of
https://github.com/wearepixel/laravel-cart.git
synced 2026-11-14 22:01:48 +00:00
Add items with no price
This commit is contained in:
@@ -7,7 +7,7 @@ class Helpers
|
||||
/**
|
||||
* Normalize prices
|
||||
*/
|
||||
public static function normalizePrice($price): float
|
||||
public static function normalizePrice($price): ?float
|
||||
{
|
||||
return (is_string($price)) ? floatval($price) : $price;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user