Skip to content

Commit

Permalink
fix(core): handle null case in XML parser
Browse files Browse the repository at this point in the history
  • Loading branch information
DavideIadeluca committed Oct 7, 2024
1 parent 6d1c8b3 commit 46da02b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion framework/core/src/Formatter/Formatter.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public function unparse($xml, $context = null)
$xml = $callback($context, $xml);
}

return Unparser::unparse($xml);
return $xml !== null ? Unparser::unparse($xml) : null;
}

/**
Expand Down

0 comments on commit 46da02b

Please sign in to comment.