Skip to content

Commit

Permalink
fix: só carrega um estado por vez no IBPT
Browse files Browse the repository at this point in the history
  • Loading branch information
mazinsw committed Apr 5, 2022
1 parent c64efa5 commit 3796d9f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/NFe/Database/IBPT.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ private function load($uf)
return false;
}
$data = json_decode($content, true);
$this->tabela[$uf] = $data;
unset($this->tabela);
gc_collect_cycles();
$this->tabela = [$uf => $data];
return $data;
}

Expand Down

0 comments on commit 3796d9f

Please sign in to comment.