Skip to content

Commit

Permalink
Merge pull request #581 from CassianoRafael/master
Browse files Browse the repository at this point in the history
Correções de compatibilidade com PHP 8.2
  • Loading branch information
robmachado authored Sep 19, 2023
2 parents c4634d8 + 593fff2 commit 90b87a2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Legacy/Pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -892,7 +892,7 @@ public function textBox(
//remover espaços desnecessários
$text = trim($text);
//converter o charset para o fpdf
$text = utf8_decode($text);
$text = mb_convert_encoding($text, 'ISO-8859-1');
//decodifica os caracteres html no xml
$text = html_entity_decode($text);
} else {
Expand Down Expand Up @@ -1033,7 +1033,7 @@ public function textBox90(
//remover espaços desnecessários
$text = trim($text);
//converter o charset para o fpdf
$text = utf8_decode($text);
$text = mb_convert_encoding($text, 'ISO-8859-1');
//decodifica os caracteres html no xml
$text = html_entity_decode($text);
} else {
Expand Down
12 changes: 12 additions & 0 deletions src/NFe/Danfe.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,18 @@ class Danfe extends DaCommon
* @var integer
*/
protected $qtdeItensProc;
/*
* NF-e processada
*
* @var \DOMNode
*/
protected $nfeProc;
/*
* Grupo de detalhamento da forma de pagamento
*
* @var \DOMNode
*/
protected $detPag;
/**
* Dom Document
*
Expand Down

0 comments on commit 90b87a2

Please sign in to comment.