Skip to content

Commit

Permalink
Ajustes phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed Jun 12, 2024
1 parent df3f4c7 commit ce51fa6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Common/Standardize.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ public function whichIs(?string $xml = null): string
$this->xml = $xml;
}
if (!Validator::isXML($this->xml)) {
$erro = Validator::$erro;
throw new DocumentsException($erro);
//invalid document is not a XML
//throw DocumentsException::wrongDocument(6);
throw new DocumentsException('Documento inválido');
}
$dom = new \DOMDocument('1.0', 'UTF-8');
$dom->preserveWhiteSpace = false;
Expand Down

0 comments on commit ce51fa6

Please sign in to comment.