From f74273cdec40f129c0437667a69dffcfa4867b86 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 19 Mar 2024 18:26:17 +0100 Subject: [PATCH] Fix arg type for trim by casting to string --- htdocs/contrat/class/contrat.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/contrat/class/contrat.class.php b/htdocs/contrat/class/contrat.class.php index 1202e840bd7..36763b00e96 100644 --- a/htdocs/contrat/class/contrat.class.php +++ b/htdocs/contrat/class/contrat.class.php @@ -3473,7 +3473,7 @@ class ContratLigne extends CommonObjectLine $this->label = trim($this->label); $this->description = trim($this->description); $this->vat_src_code = trim($this->vat_src_code); - $this->tva_tx = trim($this->tva_tx); + $this->tva_tx = trim((string) $this->tva_tx); $this->localtax1_tx = trim($this->localtax1_tx); $this->localtax2_tx = trim($this->localtax2_tx); $this->qty = trim($this->qty);