Skip to content

Commit

Permalink
fix attribute definition
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinpapst committed May 3, 2024
1 parent a3e7d1e commit de2673f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Report/DemoReportQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit de2673f

Please sign in to comment.