Skip to content

Commit

Permalink
Merge pull request #301 from robmachado/master
Browse files Browse the repository at this point in the history
Ajuste no SoapCurl quando não é retornado um XML
  • Loading branch information
robmachado authored Nov 16, 2023
2 parents dc5aa12 + 34c8292 commit 0660b2d
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 0660b2d

Please sign in to comment.