Skip to content

Commit de2673f

Browse files
committed
fix attribute definition
1 parent a3e7d1e commit de2673f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Report/DemoReportQuery.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,16 @@
1212

1313
final class DemoReportQuery
1414
{
15-
public function __construct(private \DateTimeInterface $month)
15+
public function __construct(private ?\DateTimeInterface $month)
1616
{
1717
}
1818

19-
public function getMonth(): \DateTimeInterface
19+
public function getMonth(): ?\DateTimeInterface
2020
{
2121
return $this->month;
2222
}
2323

24-
public function setMonth(?\DateTime $month): void
24+
public function setMonth(?\DateTimeInterface $month): void
2525
{
2626
$this->month = $month;
2727
}

0 commit comments

Comments
 (0)