Skip to content

Commit

Permalink
fix: set correct return type for methods RecurrenceService::getRecurr…
Browse files Browse the repository at this point in the history
…enceForNextMonth, RecurrenceService::getRecurrenceForNextYear

refs #817
  • Loading branch information
Devid Messner authored and Devid Messner committed Oct 29, 2024
1 parent 3a5215f commit 1ddc2cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Service/RecurrenceService.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function getRecurrenceForNextMonth(
string $recurrence,
string $day,
int $interval = 1
): \DateTime {
): \DateTime|false {
return $this->getRecurrenceForCurrentMonth($date, $recurrence, $day, '+' . $interval . ' month');
}

Expand All @@ -46,7 +46,7 @@ public function getRecurrenceForNextYear(
string $recurrence,
string $day,
int $interval = 1
): \DateTime {
): \DateTime|false {
return $this->getRecurrenceForCurrentMonth($date, $recurrence, $day, '+' . $interval . ' year');
}

Expand Down

0 comments on commit 1ddc2cd

Please sign in to comment.