Skip to content

Commit

Permalink
Fix XmlDocumentReader::loadFromXmlFile
Browse files Browse the repository at this point in the history
  • Loading branch information
HorstOeko committed Nov 12, 2024
1 parent e99e6c2 commit bde10d0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/XmlDocumentReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public function loadFromXmlFile(string $filename): XmlDocumentReader
$prevUseInternalErrors = \libxml_use_internal_errors(true);

try {
libxml_clear_errors();
$this->internalDomDocument->load($filename);
if (libxml_get_last_error()) {
throw new RuntimeException("Invalid XML detected.");
Expand Down

0 comments on commit bde10d0

Please sign in to comment.