Skip to content

Commit f36d7a0

Browse files
authored
Merge pull request #36 from pazion/master
PHP-8.3 AllowDynamicProperties in Traits/Item
2 parents e2388ff + 499897a commit f36d7a0

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/Generator/Invoic/Item.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* Class Item
1212
* @package EDI\Generator\Invoic
1313
*/
14+
#[\AllowDynamicProperties]
1415
class Item extends Base
1516
{
1617
use ItemTrait;

src/Generator/Traits/NameAndAddress.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -694,7 +694,8 @@ public function setInvoiceAddress(
694694
$zipCode = '',
695695
$city = '',
696696
$countryCode = 'DE',
697-
$managingOrganisation = 'ZZZ'
697+
$managingOrganisation = 'ZZZ',
698+
$sender = null
698699
) {
699700
$this->invoiceAddress = $this->addNameAndAddress(
700701
$name1,
@@ -705,7 +706,8 @@ public function setInvoiceAddress(
705706
$city,
706707
$countryCode,
707708
$managingOrganisation,
708-
'IV'
709+
'IV',
710+
$sender ?? ''
709711
);
710712
return $this;
711713
}

0 commit comments

Comments
 (0)