Skip to content

Commit 4bf6bfb

Browse files
committed
PHPSTAN fix
1 parent e3398c8 commit 4bf6bfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Service/Notification/CycleStartNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ public function send(Cycle $cycle = null): void
9898

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

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

0 commit comments

Comments
 (0)