Skip to content

Commit

Permalink
fix deprecated passing null as string type (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
trin4ik authored Dec 24, 2022
1 parent 6db7e9d commit 13f76ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ArrayToXml.php
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ protected function isArrayAllKeySequential(array | string | null $value): bool
protected function addAttributes(DOMElement $element, array $data): void
{
foreach ($data as $attrKey => $attrVal) {
$element->setAttribute($attrKey, $attrVal);
$element->setAttribute($attrKey, $attrVal ?? '');
}
}

Expand Down

0 comments on commit 13f76ac

Please sign in to comment.