Skip to content

Commit

Permalink
Remove @ symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
frankdekker committed Apr 29, 2023
1 parent c7cfc3d commit 2dcc461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Xml/DOMDocumentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public function createFromString(string $data): DOMDocument

// avoid libxml triggering the error handler
libxml_use_internal_errors(true);
if (@$document->loadXML($data) === false) {
if ($document->loadXML($data) === false) {
$error = libxml_get_last_error();
$error === false ? throw new ParseException('Unable to read xml. Invalid format') : throw new XMLException($error);
}
Expand Down

0 comments on commit 2dcc461

Please sign in to comment.