mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.2' into PHP-8.3
* PHP-8.2: Fix flaky DatePeriod test
This commit is contained in:
commit
a840a54fbc
1 changed files with 2 additions and 2 deletions
|
@ -3,8 +3,8 @@ Date Period iterators do not advance on valid()
|
|||
--FILE--
|
||||
<?php
|
||||
|
||||
$start = DateTime::createFromFormat('Y-m-d', '2022-01-01');
|
||||
$end = DateTime::createFromFormat('Y-m-d', '2022-01-04');
|
||||
$start = DateTime::createFromFormat('Y-m-d H:i:s', '2022-01-01 00:00:00');
|
||||
$end = DateTime::createFromFormat('Y-m-d H:i:s', '2022-01-04 00:00:00');
|
||||
$interval = DateInterval::createFromDateString('1 day');
|
||||
$period = new DatePeriod($start, $interval, $end);
|
||||
$iterator = $period->getIterator();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue