From 6447f49f8e24b2c35112e2382d814481455ac24c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20Magyar?= <14284867+xHeaven@users.noreply.github.com> Date: Thu, 26 Dec 2024 03:30:30 +0100 Subject: [PATCH] Replace array access with foreach value --- src/ArrayToXml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ArrayToXml.php b/src/ArrayToXml.php index 7853eef..9e0fde0 100644 --- a/src/ArrayToXml.php +++ b/src/ArrayToXml.php @@ -306,7 +306,7 @@ protected function createRootElement(string|array $rootElement): DOMElement continue; } - $this->addAttributes($element, $rootElement[$key]); + $this->addAttributes($element, $value); } return $element;