Skip to content

Commit

Permalink
Merge pull request #521 from JohnFortes/nova-funcionalidade
Browse files Browse the repository at this point in the history
Resolver Warning de LogisticaReversaPedidoResposta.php
  • Loading branch information
stavarengo authored Apr 30, 2024
2 parents fdd1d47 + 7c1e829 commit 9d72176
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpSigep/Model/LogisticaReversaPedidoResposta.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function setReturn($return)
{
$this->return = $return;

if (is_object($return->resultado_solicitacao)){
if (isset($return->resultado_solicitacao) && is_object($return->resultado_solicitacao)){
if (sizeof((array)$return->resultado_solicitacao)>0){
$this->coletas_solicitadas = $return->resultado_solicitacao;
}
Expand Down

0 comments on commit 9d72176

Please sign in to comment.