Skip to content

Commit

Permalink
Update XML.php #11
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue authored Aug 16, 2023
1 parent 5222810 commit bf068fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Support/XML.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ public static function toArray(string $xml): array

public static function fromArray(array $data): bool|string
{
if (empty($data)) {
return ''
};

return Transformer::toXml($data);
}
}

0 comments on commit bf068fa

Please sign in to comment.