From 5e2814c193297359fb48a7e9cd433b0d6a2cf1c3 Mon Sep 17 00:00:00 2001 From: Marco Rieser Date: Wed, 15 Apr 2026 16:46:45 +0200 Subject: [PATCH 1/2] Rename and snake case spansDay to spans_days --- src/Events.php | 2 +- tests/Tags/EventsTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Events.php b/src/Events.php index dc0fa40..86ffed6 100644 --- a/src/Events.php +++ b/src/Events.php @@ -175,7 +175,7 @@ private function output(callable $type): EntryCollection|LengthAwarePaginator return $occurrence ->setSupplement('start', $start) ->setSupplement('end', $end) - ->setSupplement('spansDay', ! $start->isSameDay($end)); + ->setSupplement('spans_days', ! $start->isSameDay($end)); }); } diff --git a/tests/Tags/EventsTest.php b/tests/Tags/EventsTest.php index 5cf04da..22d8bfc 100755 --- a/tests/Tags/EventsTest.php +++ b/tests/Tags/EventsTest.php @@ -428,7 +428,7 @@ ->first()->start->timezone->getName()->toBe('America/Vancouver'); }); -it('sets "spansDay"', function () { +it('sets "spans_days"', function () { Carbon::setTestNow(now()->setTimeFromTimeString('10:00')); Entry::make() @@ -454,5 +454,5 @@ $occurrences = $this->tag->between(); expect($occurrences)->toHaveCount(1) - ->first()->spansDay->toBeTrue(); + ->first()->spanning_days->toBeTrue(); }); From c9ae39767dfbce2a235c738cbcf91ad3f1bb1080 Mon Sep 17 00:00:00 2001 From: Marco Rieser Date: Wed, 15 Apr 2026 16:48:20 +0200 Subject: [PATCH 2/2] Fix tests --- tests/Tags/EventsTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/Tags/EventsTest.php b/tests/Tags/EventsTest.php index 22d8bfc..ca42b5f 100755 --- a/tests/Tags/EventsTest.php +++ b/tests/Tags/EventsTest.php @@ -454,5 +454,5 @@ $occurrences = $this->tag->between(); expect($occurrences)->toHaveCount(1) - ->first()->spanning_days->toBeTrue(); + ->first()->spans_days->toBeTrue(); });