Skip to content

Commit

Permalink
fix accommodation nullability
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Kurowski committed Mar 8, 2023
1 parent 0d8030f commit cfe3632
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Event/Response/Event.php
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ public function getPracticalInformation(): string
}

/** @deprecated use getPropagation()->getAccommodation() instead */
public function getAccommodation(): string
public function getAccommodation(): ?string
{
return $this->getPropagation()->getAccommodation();
}
Expand Down
6 changes: 3 additions & 3 deletions src/Event/Response/Propagation.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private function __construct(
private ?int $minimumAge,
private ?int $maximumAge,
private string $cost,
private string $accommodation,
private ?string $accommodation,
private ?int $workingDays,
private ?int $workingHours,
private array $diets,
Expand All @@ -39,7 +39,7 @@ public static function from(
?int $minimumAge,
?int $maximumAge,
string $cost,
string $accommodation,
?string $accommodation,
?int $workingDays,
?int $workingHours,
array $diets,
Expand Down Expand Up @@ -91,7 +91,7 @@ public function getCost(): string
}


public function getAccommodation(): string
public function getAccommodation(): ?string
{
return $this->accommodation;
}
Expand Down

0 comments on commit cfe3632

Please sign in to comment.