Skip to content

Commit

Permalink
Ajuste no SoapCurl quando não é retornado um XML
Browse files Browse the repository at this point in the history
  • Loading branch information
robmachado committed Nov 16, 2023
1 parent dc5aa12 commit 34c8292
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Soap/SoapCurl.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,9 @@ public function send(
if (empty($this->responseBody)) {
throw SoapException::soapFault('Retorno da SEFAZ VAZIO', 99);
}
if (!Validator::isXML($this->responseBody)) {
throw SoapException::soapFault('O retorno não é um XML ' . $this->responseBody, 99);
}
return $this->responseBody;
}

Expand Down

0 comments on commit 34c8292

Please sign in to comment.