We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8443078 + 883fe04 commit f27dbd7Copy full SHA for f27dbd7
src/IteratorItem/Easter.php
@@ -63,10 +63,6 @@ public function dateMatches(DateTimeInterface $date): bool
63
$easter = $this->getEaster($year);
64
$day = $this->getOffsetDay($easter, $this->offset);
65
66
- if (false === $day) {
67
- return false;
68
- }
69
-
70
$comparator = new DateIntervalComparator();
71
return 0 > $comparator->compare($day->diff($date), new DateInterval('P1D'));
72
}
@@ -91,7 +87,7 @@ protected function getEaster(int $year): DateTimeImmutable
91
87
92
88
/**
93
89
* @param DateTime|DateTimeImmutable $date
94
- * @return DateTime|DateTimeImmutable|false
90
+ * @return DateTime|DateTimeImmutable
95
*/
96
private function getOffsetDay($date, int $offset)
97
{
0 commit comments