Skip to content

Commit

Permalink
fix argument type
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Feb 13, 2020
1 parent eb521f6 commit 375bbae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Response/Handler/XmlResponseHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ protected function prettify(ArrayToXml $converter): string
{
$domDocument = $converter->toDom();
$domDocument->formatOutput = true;
$xmlContent = $domDocument->saveXML();

return \rtrim($domDocument->saveXML(), "\n");
return $xmlContent !== false ? \rtrim($xmlContent, "\n") : '';
}
}

0 comments on commit 375bbae

Please sign in to comment.