Skip to content

Commit

Permalink
fixup! Remove deprecation warnings while using PHP8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
deeaitsch84 committed Jan 27, 2025
1 parent 35338e7 commit 79d4a63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ public function clearCache()
}
}

public function today(DateTime $dateTime = null): Day
public function today(?DateTime $dateTime = null): Day
{
$today = $this->getRoot()->getOneByCriteria(function (Node $node) use ($dateTime) {
return $node instanceof Day && $node->date === ($this->roundTime($dateTime ?: new DateTime()))->format(
Expand Down

0 comments on commit 79d4a63

Please sign in to comment.