Skip to content

Commit decbd99

Browse files
authored
PHPORM-152 Fix tests for Carbon 3 (#2733)
1 parent 26a6824 commit decbd99

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/Query/BuilderTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,12 @@ function (Builder $builder) {
564564
yield 'whereBetween CarbonPeriod' => [
565565
[
566566
'find' => [
567-
['created_at' => ['$gte' => new UTCDateTime($period->start), '$lte' => new UTCDateTime($period->end)]],
567+
[
568+
'created_at' => [
569+
'$gte' => new UTCDateTime($period->getStartDate()),
570+
'$lte' => new UTCDateTime($period->getEndDate()),
571+
],
572+
],
568573
[], // options
569574
],
570575
],

0 commit comments

Comments
 (0)