Remove utr8_decode call, PHP8 depreciation

This commit is contained in:
Noizette 2023-04-16 00:05:29 +02:00
parent 00ae3cd89e
commit 868174e6ab

View File

@ -330,9 +330,9 @@ elseif ($f->type_facture == CERFA)
$t['total_lettre'] = numfmt_create('fr_FR', \NumberFormatter::SPELLOUT)->format($f->total/100). ' euros'; $t['total_lettre'] = numfmt_create('fr_FR', \NumberFormatter::SPELLOUT)->format($f->total/100). ' euros';
$t['d'] = utf8_decode($f->date_emission->format('d')); $t['d'] = ($f->date_emission->format('d'));
$t['m'] = utf8_decode($f->date_emission->format('m')); $t['m'] = ($f->date_emission->format('m'));
$t['Y'] = utf8_decode($f->date_emission->format('Y')); $t['Y'] = ($f->date_emission->format('Y'));
$t['forme'] = $f->contenu['forme']; $t['forme'] = $f->contenu['forme'];
$t['nature'] = $f->contenu['nature']; $t['nature'] = $f->contenu['nature'];
@ -386,9 +386,9 @@ elseif ($f->type_facture == CERFA)
$t['pos'] = 'left: 115.2mm;'; $t['pos'] = 'left: 115.2mm;';
} }
$t['d2'] = utf8_decode($f->date_echeance->format('d')); $t['d2'] = ($f->date_echeance->format('d'));
$t['m2'] = utf8_decode($f->date_echeance->format('m')); $t['m2'] = ($f->date_echeance->format('m'));
$t['Y2'] = utf8_decode($f->date_echeance->format('Y')); $t['Y2'] = ($f->date_echeance->format('Y'));
ob_start(); ob_start();
echo <<<EOF echo <<<EOF