Fix arg type to preg_replace() with cast

This commit is contained in:
MDW 2024-03-19 15:33:26 +01:00
parent 94851b9105
commit 05fbb7257c
No known key found for this signature in database

View file

@ -546,7 +546,7 @@ if (empty($reshook)) {
}
$tmpvat = price2num(preg_replace('/\s*\(.*\)/', '', $tva_tx));
$tmpprodvat = price2num(preg_replace('/\s*\(.*\)/', '', $prod->tva_tx));
$tmpprodvat = price2num(preg_replace('/\s*\(.*\)/', '', (string) $prod->tva_tx));
// Set unit price to use
if (!empty($price_ht) || $price_ht === '0') {