chore: remove deprecations

This commit is contained in:
Björn Fromme committed 2025-07-08 15:06:44 +02:00
1 parent 8e27cc990b
commit 70e477073b
7 files changed
+123 -26

No files matched your search

+8 -8
View File
@@ -26,15 +26,15 @@ class InvoiceRenderer extends AbstractPdfRenderer
$assignment = $disposition->getAssignment();
// Name
$pdf->Text(135,28.5, utf8_decode($teamer->getFullName()));
$pdf->Text(135,28.5, $pdf->encodeString($teamer->getFullName()));
// Address
$address = $teamer->getAddress();
$pdf->Text(135,39, utf8_decode($address->getStreet()));
$pdf->Text(135,51, utf8_decode($address->getPostCode(). ' '.$address->getCity()));
$pdf->Text(135,39, $pdf->encodeString($address->getStreet()));
$pdf->Text(135,51, $pdf->encodeString($address->getPostCode(). ' '.$address->getCity()));
// Tax ID
$pdf->Text(144,62, utf8_decode($teamer->getTaxId()));
$pdf->Text(144,62, $pdf->encodeString($teamer->getTaxId()));
// Invoice number
$pdf->SetFont('Arial', '', 12);
@@ -45,14 +45,14 @@ class InvoiceRenderer extends AbstractPdfRenderer
// Bank account
$bankAccount = $teamer->getBankAccount();
$pdf->Text(36,233.5, utf8_decode($bankAccount->getIban()));
$pdf->Text(36,241, utf8_decode($bankAccount->getBic()));
$pdf->Text(36,248.5, utf8_decode($bankAccount->getBank()));
$pdf->Text(36,233.5, $pdf->encodeString($bankAccount->getIban()));
$pdf->Text(36,241, $pdf->encodeString($bankAccount->getBic()));
$pdf->Text(36,248.5, $pdf->encodeString($bankAccount->getBank()));
// Current date
$date = (new \DateTimeImmutable())->format('d.m.Y');
$pdf->Text(38,264, utf8_decode($date));
$pdf->Text(38,264, $pdf->encodeString($date));
return $pdf;
}