fix phpstan (#28403)

This commit is contained in:
Frédéric FRANCE 2024-02-25 10:04:57 +01:00 committed by GitHub
parent c159aff82f
commit b7b799b88e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}