From 1ad1c6e95195c26bbfeabf299e24d37d0d12a385 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 5 Nov 2021 14:49:56 +0100 Subject: [PATCH] fix PHP 8.0 TypeError: Unsupported operand types: null + array --- api/src/Etemplate/Widget/File.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/File.php b/api/src/Etemplate/Widget/File.php index 06caef931a..add9a199e9 100644 --- a/api/src/Etemplate/Widget/File.php +++ b/api/src/Etemplate/Widget/File.php @@ -41,7 +41,7 @@ class File extends Etemplate\Widget */ public function __construct($xml='') { - $this->bool_attr_default += array( + $this->bool_attr_default = ($this->bool_attr_default ?? []) + array( 'multiple' => false, );