mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Fix failing date test
INCLUDE_END_DATE has only been introduced in PHP 8.2.
This commit is contained in:
@@ -13,9 +13,6 @@ echo $period->getRecurrences(), " ", $period->recurrences, "\n";
|
||||
$period = new DatePeriod($start, $interval, $recurrences);
|
||||
echo $period->getRecurrences(), " ", $period->recurrences, "\n";
|
||||
|
||||
$period = new DatePeriod($start, $interval, $recurrences, DatePeriod::INCLUDE_END_DATE);
|
||||
echo $period->getRecurrences(), " ", $period->recurrences, "\n";
|
||||
|
||||
$period = new DatePeriod($start, $interval, $end);
|
||||
echo $period->getRecurrences(), " ", $period->recurrences, "\n";
|
||||
|
||||
@@ -25,6 +22,5 @@ echo $period->getRecurrences(), " ", $period->recurrences, "\n";
|
||||
--EXPECT--
|
||||
5 5
|
||||
5 6
|
||||
5 7
|
||||
1
|
||||
0
|
||||
|
||||
Reference in New Issue
Block a user