fix: phpstan typemismatch

This commit is contained in:
Florian HENRY 2024-12-04 16:40:21 +01:00
parent 72c7a4f272
commit d109647434
2 changed files with 2 additions and 2 deletions

View file

@ -511,7 +511,7 @@ if (empty($reshook)) {
}
$tva_tx = $lines[$i]->tva_tx;
if (!empty($lines[$i]->vat_src_code) && !preg_match('/\(/', $tva_tx)) {
if (!empty($lines[$i]->vat_src_code) && !preg_match('/\(/', (string) $tva_tx)) {
$tva_tx .= ' ('.$lines[$i]->vat_src_code.')';
}

View file

@ -1339,7 +1339,7 @@ if (empty($reshook)) {
}
$tva_tx = $lines[$i]->tva_tx;
if (!empty($lines[$i]->vat_src_code) && !preg_match('/\(/', $tva_tx)) {
if (!empty($lines[$i]->vat_src_code) && !preg_match('/\(/', (string) $tva_tx)) {
$tva_tx .= ' ('.$lines[$i]->vat_src_code.')';
}