diff --git a/Report/DemoReportQuery.php b/Report/DemoReportQuery.php index 96a9d77..dc84bdd 100644 --- a/Report/DemoReportQuery.php +++ b/Report/DemoReportQuery.php @@ -12,16 +12,16 @@ final class DemoReportQuery { - public function __construct(private \DateTimeInterface $month) + public function __construct(private ?\DateTimeInterface $month) { } - public function getMonth(): \DateTimeInterface + public function getMonth(): ?\DateTimeInterface { return $this->month; } - public function setMonth(?\DateTime $month): void + public function setMonth(?\DateTimeInterface $month): void { $this->month = $month; }