Skip to content

Commit

Permalink
Merge pull request #71 from cultuurnet/feature/PUBLIQ-928
Browse files Browse the repository at this point in the history
PUBLIQ-928: Make organizer address nullable
  • Loading branch information
zuuperman authored Nov 28, 2023
2 parents 36d82ba + 815d99e commit 03babd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/ValueObjects/Organizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function getAddress(): ?TranslatedAddress
return $this->address;
}

public function setAddress(TranslatedAddress $address): void
public function setAddress(?TranslatedAddress $address): void
{
$this->address = $address;
}
Expand Down
4 changes: 1 addition & 3 deletions src/ValueObjects/TranslatedAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@ public function setAddresses(array $addresses): void

public function addAddress(string $key, Address $address): void
{
if (!isset($this->addresses[$key])) {
$this->addresses[$key] = $address;
}
$this->addresses[$key] = $address;
}

public function getAddressForLanguage(string $langcode): ?Address
Expand Down

0 comments on commit 03babd0

Please sign in to comment.