From 5bba8ba0ec11e3c36cf3ca5fc6141e69b3fc898e Mon Sep 17 00:00:00 2001 From: Bastian Lederer Date: Fri, 9 Jan 2026 08:23:54 +0100 Subject: [PATCH] Only add display groups for defined buttons Elements passed to ZendForm::addDisplayGroup will be used as array keys, if they are null that causes a deprecation warning since PHP-8.5. To avoid this all null values are removed. --- library/Businessprocess/Web/Form/QuickForm.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/library/Businessprocess/Web/Form/QuickForm.php b/library/Businessprocess/Web/Form/QuickForm.php index 96a84cd..61af62f 100644 --- a/library/Businessprocess/Web/Form/QuickForm.php +++ b/library/Businessprocess/Web/Form/QuickForm.php @@ -130,9 +130,10 @@ abstract class QuickForm extends QuickBaseForm ) ); - $grp = array( - $this->submitButtonName ?? '', - $this->deleteButtonName ?? '' + // Add display group for defined buttons only + $grp = array_filter( + [$this->submitButtonName, $this->deleteButtonName], + fn($x) => $x !== null ); $this->addDisplayGroup($grp, 'buttons', array( 'decorators' => array(