Skip to content

Commit f27dbd7

Browse files
authored
Merge pull request #152 from heiglandreas/fixPsalm
Remove obsolete return type
2 parents 8443078 + 883fe04 commit f27dbd7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/IteratorItem/Easter.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,6 @@ public function dateMatches(DateTimeInterface $date): bool
6363
$easter = $this->getEaster($year);
6464
$day = $this->getOffsetDay($easter, $this->offset);
6565

66-
if (false === $day) {
67-
return false;
68-
}
69-
7066
$comparator = new DateIntervalComparator();
7167
return 0 > $comparator->compare($day->diff($date), new DateInterval('P1D'));
7268
}
@@ -91,7 +87,7 @@ protected function getEaster(int $year): DateTimeImmutable
9187

9288
/**
9389
* @param DateTime|DateTimeImmutable $date
94-
* @return DateTime|DateTimeImmutable|false
90+
* @return DateTime|DateTimeImmutable
9591
*/
9692
private function getOffsetDay($date, int $offset)
9793
{

0 commit comments

Comments
 (0)