Skip to content

Commit

Permalink
Disable warning schema location
Browse files Browse the repository at this point in the history
  • Loading branch information
giansalex committed Nov 5, 2017
1 parent da4c375 commit 221caee
Show file tree
Hide file tree
Showing 6 changed files with 565 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Greenter/Parser/InvoiceParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ private function getXpath($value)
$doc = $value;
} else {
$doc = new \DOMDocument();
$doc->loadXML($value);
@$doc->loadXML($value);
}
$rootNamespace = $doc->documentElement->namespaceURI;
$xpt = new \DOMXPath($doc);
Expand Down
2 changes: 1 addition & 1 deletion src/Greenter/XmlReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class XmlReader
public function loadXml($xml)
{
$doc = new \DOMDocument();
$doc->loadXML($xml);
@$doc->loadXML($xml);
$this->loadDom($doc);
}

Expand Down
Loading

0 comments on commit 221caee

Please sign in to comment.