diff --git a/src/Utilities/Date.php b/src/Utilities/Date.php index 30ff7d1..421b411 100644 --- a/src/Utilities/Date.php +++ b/src/Utilities/Date.php @@ -120,7 +120,10 @@ class Date if (null !== $lastMonth) { $dateStart = $lastMonth->getEndDate(); - $dateStart->add(new DateInterval('P1D')); + + if (null !== $dateStart) { + $dateStart->add(new DateInterval('P1D')); + } } if (null !== $nextMonth) {