Skip to content

Commit f1e08c1

Browse files
authored
Replace array access with foreach value (#236)
1 parent 6fb2378 commit f1e08c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ArrayToXml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ protected function createRootElement(string|array $rootElement): DOMElement
306306
continue;
307307
}
308308

309-
$this->addAttributes($element, $rootElement[$key]);
309+
$this->addAttributes($element, $value);
310310
}
311311

312312
return $element;

0 commit comments

Comments
 (0)