From a626743ba6f7c4a3c8f1e192ee2f888035b7fe7f Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 13 Jan 2021 13:10:30 +0100 Subject: [PATCH] DatePeriod::__construct() no longer accepts 0 $recurrences Cf. . We also document the default value of `$options`, and remove the PHP 5 related changelog entries. --- reference/datetime/dateperiod/construct.xml | 23 +++++++-------------- 1 file changed, 7 insertions(+), 16 deletions(-) diff --git a/reference/datetime/dateperiod/construct.xml b/reference/datetime/dateperiod/construct.xml index 669dd3dc06..2c56c0ef42 100644 --- a/reference/datetime/dateperiod/construct.xml +++ b/reference/datetime/dateperiod/construct.xml @@ -14,19 +14,19 @@ DateTimeInterfacestart DateIntervalinterval intrecurrences - intoptions + intoptions0 public DatePeriod::__construct DateTimeInterfacestart DateIntervalinterval DateTimeInterfaceend - intoptions + intoptions0 public DatePeriod::__construct stringisostr - intoptions + intoptions0 Creates a new DatePeriod object. @@ -57,7 +57,7 @@ recurrences - The number of recurrences. + The number of recurrences. Must be greater than 0. @@ -74,6 +74,7 @@ An ISO 8601 repeating interval specification. + Zero occurences (R0/) are not supported. @@ -104,19 +105,9 @@ - 5.5.8 + 7.2.19, 7.3.6, 7.4.0 - end type changed to - DateTimeInterface. - Previously, DateTime. - - - - 5.5.0 - - start type changed to - DateTimeInterface. - Previously, DateTime. + recurrences must be greater than 0 now.