Skip to content

Commit

Permalink
Merge pull request #818 from devmes/bugfix/817
Browse files Browse the repository at this point in the history
fix: set correct return type for methods RecurrenceService::getRecurr…
  • Loading branch information
lochmueller authored Oct 29, 2024
2 parents 3e3d311 + 1ddc2cd commit 766a18d
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 766a18d

Please sign in to comment.