From cfe36325a5c5177a60182471cb41bc69305b5fb3 Mon Sep 17 00:00:00 2001 From: Daniel Kurowski Date: Wed, 8 Mar 2023 13:32:48 +0100 Subject: [PATCH] fix accommodation nullability --- src/Event/Response/Event.php | 2 +- src/Event/Response/Propagation.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Event/Response/Event.php b/src/Event/Response/Event.php index cd5ce9c..a61f702 100644 --- a/src/Event/Response/Event.php +++ b/src/Event/Response/Event.php @@ -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(); } diff --git a/src/Event/Response/Propagation.php b/src/Event/Response/Propagation.php index 0fb3835..09d0c98 100644 --- a/src/Event/Response/Propagation.php +++ b/src/Event/Response/Propagation.php @@ -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, @@ -39,7 +39,7 @@ public static function from( ?int $minimumAge, ?int $maximumAge, string $cost, - string $accommodation, + ?string $accommodation, ?int $workingDays, ?int $workingHours, array $diets, @@ -91,7 +91,7 @@ public function getCost(): string } - public function getAccommodation(): string + public function getAccommodation(): ?string { return $this->accommodation; }