I have this error appear on my script
Warning: A non-numeric value encountered
the line is :
$new_shipping_weight += $shipping_weight;
my code
if ($shipping_weight <= 0 || is_null($shipping_weight)) $shipping_weight = 0.1;
var_dump(is_numeric($shipping_weight));
$new_shipping_weight += $shipping_weight;
var_dump(is_numeric($new_shipping_weight));
result :
bool(true)
Warning: A non-numeric value encountered in
bool(true)
Where is the problem ?
Thank you.