diff --git a/dev/build/phpstan/phpstan-baseline.neon b/dev/build/phpstan/phpstan-baseline.neon index 2e8c4461e28..12d647820f4 100644 --- a/dev/build/phpstan/phpstan-baseline.neon +++ b/dev/build/phpstan/phpstan-baseline.neon @@ -7050,18 +7050,6 @@ parameters: count: 1 path: ../../../htdocs/core/class/html.formsetup.class.php - - - message: '#^Loose comparison using \!\= between 1 and ''1'' will always evaluate to false\.$#' - identifier: notEqual.alwaysFalse - count: 1 - path: ../../../htdocs/core/class/html.formsms.class.php - - - - message: '#^Result of && is always false\.$#' - identifier: booleanAnd.alwaysFalse - count: 1 - path: ../../../htdocs/core/class/html.formsms.class.php - - message: '#^Call to function is_array\(\) with array will always evaluate to true\.$#' identifier: function.alreadyNarrowedType diff --git a/htdocs/core/class/html.formsms.class.php b/htdocs/core/class/html.formsms.class.php index cf82ca3c81c..6db373145e1 100644 --- a/htdocs/core/class/html.formsms.class.php +++ b/htdocs/core/class/html.formsms.class.php @@ -1,7 +1,7 @@ * Copyright (C) 2010 Juanjo Menent - * Copyright (C) 2018-2024 Frédéric France + * Copyright (C) 2018-2025 Frédéric France * Copyright (C) 2024 MDW * * This program is free software; you can redistribute it and/or modify @@ -21,7 +21,7 @@ /** * \file htdocs/core/class/html.formsms.class.php * \ingroup core - * \brief Fichier de la class permettant la generation du formulaire html d'envoi de mail unitaire + * \brief Class file for generating the HTML form used to send individual SMS messages */ require_once DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php'; @@ -84,7 +84,7 @@ class FormSms public $withfrom; /** - * @var int<0,1> + * @var int<0,1>|string[] */ public $withto; @@ -315,7 +315,7 @@ function limitChars(textarea, limit, infodiv) if ($this->withtoreadonly) { print (!is_array($this->withto) && !is_numeric($this->withto)) ? $this->withto : ""; } else { - print 'withto) : "+").'">'; + print 'withto) : "+").'">'; if (!empty($this->withtosocid) && $this->withtosocid > 0) { $liste = array(); foreach ($soc->thirdparty_and_contact_phone_array() as $key => $value) {