diff --git a/src/Utilities/Date.php b/src/Utilities/Date.php index 6b614f6..4d950fa 100644 --- a/src/Utilities/Date.php +++ b/src/Utilities/Date.php @@ -125,7 +125,10 @@ class Date if (null !== $nextMonth) { $dateEnd = $nextMonth->getStartDate(); - $dateEnd->sub(new DateInterval('P1D')); + + if (null !== $dateEnd) { + $dateEnd->sub(new DateInterval('P1D')); + } } break;