From 245e0544749d1b53f35c217b05934f23c9e77e75 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Wed, 21 Feb 2024 14:25:45 +0100 Subject: [PATCH] PHPORM-152 Fix tests for Carbon 3 --- tests/Query/BuilderTest.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/Query/BuilderTest.php b/tests/Query/BuilderTest.php index 8f62583ce..6df0b1a42 100644 --- a/tests/Query/BuilderTest.php +++ b/tests/Query/BuilderTest.php @@ -564,7 +564,12 @@ function (Builder $builder) { yield 'whereBetween CarbonPeriod' => [ [ 'find' => [ - ['created_at' => ['$gte' => new UTCDateTime($period->start), '$lte' => new UTCDateTime($period->end)]], + [ + 'created_at' => [ + '$gte' => new UTCDateTime($period->getStartDate()), + '$lte' => new UTCDateTime($period->getEndDate()), + ], + ], [], // options ], ],