From 00cd346255fd5b1aa758a362c2ae2cfb2522e961 Mon Sep 17 00:00:00 2001 From: Philipp Date: Wed, 5 Jul 2023 22:02:58 +0200 Subject: [PATCH] Fix XML deprecation --- src/Util/XML.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Util/XML.php b/src/Util/XML.php index e5fa4009f3..c35f19b8a8 100644 --- a/src/Util/XML.php +++ b/src/Util/XML.php @@ -118,7 +118,7 @@ class XML $namespace = null; } - $element->addAttribute($attr_key, $attr_value, $namespace); + $element->addAttribute($attr_key, $attr_value ?? '', $namespace); } continue;