From 05c32bb12d58112e711e5c180ad231782ff99523 Mon Sep 17 00:00:00 2001 From: MDW Date: Fri, 28 Nov 2025 01:57:26 +0100 Subject: [PATCH] Qual: Cast label to string to ensure type consistency (phpstan) --- htdocs/core/class/html.form.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index be72f9f6b8f..1527041ae58 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -4759,7 +4759,7 @@ class Form $obj = $this->db->fetch_object($resql); // Si traduction existe, on l'utilise, sinon on prend le libelle par default - $label = ($obj->label != '-' ? $obj->label : ''); + $label = ($obj->label != '-' ? (string) $obj->label : ''); if ($langs->trans("DemandReasonType" . $obj->code) != "DemandReasonType" . $obj->code) { $label = $langs->trans("DemandReasonType" . $obj->code); // So translation key DemandReasonTypeSRC_XXX will work }