Skip to content

Commit d9045e7

Browse files
committed
Merge all JS attributes of Address into Location
1 parent bfe566c commit d9045e7

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

Location/Address.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ public function getVatId(): string
243243

244244
public function getAttributes(): array
245245
{
246-
$attributes = [
246+
return [
247247
'street' => $this->getStreet(),
248248
'houseNumber' => $this->getHouseNumber(),
249249
'houseNumberAddition' => $this->getHouseNumberAddition(),
@@ -266,8 +266,6 @@ public function getAttributes(): array
266266
'addressLine' => $this->getAddressLine(),
267267
'addressHtml' => $this->getAddressHtml(),
268268
];
269-
270-
return $attributes;
271269
}
272270

273271
#[\ReturnTypeWillChange]

Location/Location.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public function getValue(): array
6565
public function getAttributes(): array
6666
{
6767
$attributes = [
68-
'address' => $this->getAddress(),
68+
...$this->getAddress()->getAttributes(),
6969
'id' => $this->getId(),
7070
'label' => $this->getLabel(),
7171
'value' => $this->getValue(),

0 commit comments

Comments
 (0)