From dd571d622103a98662f58ec1e738191bf7944b07 Mon Sep 17 00:00:00 2001 From: James Cole Date: Thu, 31 Aug 2023 19:02:38 +0200 Subject: [PATCH] Fix test --- tests/unit/Support/Calendar/Periodicity/MonthlyTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php b/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php index fcc81f4690..b8785b5e3b 100644 --- a/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php +++ b/tests/unit/Support/Calendar/Periodicity/MonthlyTest.php @@ -45,7 +45,7 @@ class MonthlyTest extends IntervalTestCase public static function provideIntervals(): array { return [ - new IntervalProvider(Carbon::now(), Carbon::now()->addMonth(1)), + new IntervalProvider(Carbon::now(), Carbon::now()->addMonthsNoOverflow(1)), new IntervalProvider(Carbon::parse('2019-01-01'), Carbon::parse('2019-02-01')), new IntervalProvider(Carbon::parse('2020-01-29'), Carbon::parse('2020-02-29')), new IntervalProvider(Carbon::parse('2020-01-30'), Carbon::parse('2020-02-29')),