Skip to content

Commit a840a54

Browse files
committed
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix flaky DatePeriod test
2 parents a30a41a + 9256ee7 commit a840a54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/date/tests/DatePeriod_no_advance_on_valid.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ Date Period iterators do not advance on valid()
33
--FILE--
44
<?php
55

6-
$start = DateTime::createFromFormat('Y-m-d', '2022-01-01');
7-
$end = DateTime::createFromFormat('Y-m-d', '2022-01-04');
6+
$start = DateTime::createFromFormat('Y-m-d H:i:s', '2022-01-01 00:00:00');
7+
$end = DateTime::createFromFormat('Y-m-d H:i:s', '2022-01-04 00:00:00');
88
$interval = DateInterval::createFromDateString('1 day');
99
$period = new DatePeriod($start, $interval, $end);
1010
$iterator = $period->getIterator();

0 commit comments

Comments
 (0)