Qual: Cast label to string to ensure type consistency (phpstan)
This commit is contained in:
parent
19637c1996
commit
05c32bb12d
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue