From b7b799b88e1fec4bb7ccf4e8ce7c19112ad9944f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20FRANCE?= Date: Sun, 25 Feb 2024 10:04:57 +0100 Subject: [PATCH] fix phpstan (#28403) --- htdocs/core/class/html.formsetup.class.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/htdocs/core/class/html.formsetup.class.php b/htdocs/core/class/html.formsetup.class.php index dec81f921ec..1852fc9f878 100644 --- a/htdocs/core/class/html.formsetup.class.php +++ b/htdocs/core/class/html.formsetup.class.php @@ -249,7 +249,7 @@ class FormSetup * saveConfFromPost * * @param bool $noMessageInUpdate display event message on errors and success - * @return int -1 if KO, 1 if OK + * @return int|null Return -1 if KO, 1 if OK, null if no items */ public function saveConfFromPost($noMessageInUpdate = false) { @@ -266,7 +266,6 @@ class FormSetup return $reshook; } - if (empty($this->items)) { return null; }