Skip to content

Commit

Permalink
PHPSTAN fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wikub committed Dec 18, 2022
1 parent e3398c8 commit 4bf6bfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Service/Notification/CycleStartNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public function send(Cycle $cycle = null): void

private function getCycle(): ?Cycle
{
$date = (new \DateTimeImmutable())->modify('+'.$this->nbDaysBefore.' days')->setTime(0, 0, 0, 0);
$date = (new \DateTimeImmutable())->setTime(0, 0, 0, 0)->modify('+'.$this->nbDaysBefore.' days');

return $this->cycleRepository->findOneBy(['start' => $date]);
}
Expand Down

0 comments on commit 4bf6bfb

Please sign in to comment.