From a6276c19e7d25223b1f21824ccc85fb4f9ef4e9a Mon Sep 17 00:00:00 2001 From: Alexandre Daubois Date: Tue, 3 Dec 2024 19:12:35 +0100 Subject: [PATCH] [PHP 8.4] Add `ext-date` constant types --- reference/datetime/dateperiod.xml | 16 ++++- reference/datetime/datetime.xml | 6 ++ reference/datetime/datetimeimmutable.xml | 6 ++ reference/datetime/datetimeinterface.xml | 74 +++++++++++++++---- reference/datetime/datetimezone.xml | 92 ++++++++++++++++++++---- 5 files changed, 163 insertions(+), 31 deletions(-) diff --git a/reference/datetime/dateperiod.xml b/reference/datetime/dateperiod.xml index 73631b178971..960e46a3be57 100644 --- a/reference/datetime/dateperiod.xml +++ b/reference/datetime/dateperiod.xml @@ -109,14 +109,20 @@ &reftitle.constants; - DatePeriod::EXCLUDE_START_DATE + + DatePeriod::EXCLUDE_START_DATE + int + Exclude start date, used in DatePeriod::__construct. - DatePeriod::INCLUDE_END_DATE + + DatePeriod::INCLUDE_END_DATE + int + Include end date, used in DatePeriod::__construct. @@ -257,6 +263,12 @@ echo $period->recurrences, "\n"; + + 8.4.0 + + The class constants are now typed. + + 8.2.0 diff --git a/reference/datetime/datetime.xml b/reference/datetime/datetime.xml index 6a56f5718cc9..04227c08a472 100644 --- a/reference/datetime/datetime.xml +++ b/reference/datetime/datetime.xml @@ -77,6 +77,12 @@ + + 8.4.0 + + The class constants are now typed. + + 7.2.0 diff --git a/reference/datetime/datetimeimmutable.xml b/reference/datetime/datetimeimmutable.xml index 4cbc423683e7..e8886dde666f 100644 --- a/reference/datetime/datetimeimmutable.xml +++ b/reference/datetime/datetimeimmutable.xml @@ -67,6 +67,12 @@ + + 8.4.0 + + The class constants are now typed. + + 7.1.0 diff --git a/reference/datetime/datetimeinterface.xml b/reference/datetime/datetimeinterface.xml index 8b5178fc6b15..54fc595c3d49 100644 --- a/reference/datetime/datetimeinterface.xml +++ b/reference/datetime/datetimeinterface.xml @@ -151,7 +151,10 @@ &reftitle.constants; - DateTimeInterface::ATOM + + DateTimeInterface::ATOM + string + DATE_ATOM @@ -161,7 +164,10 @@ - DateTimeInterface::COOKIE + + DateTimeInterface::COOKIE + string + DATE_COOKIE @@ -171,7 +177,10 @@ - DateTimeInterface::ISO8601 + + DateTimeInterface::ISO8601 + string + DATE_ISO8601 @@ -190,7 +199,10 @@ - DateTimeInterface::ISO8601_EXPANDED + + DateTimeInterface::ISO8601_EXPANDED + string + DATE_ISO8601_EXPANDED @@ -208,7 +220,10 @@ - DateTimeInterface::RFC822 + + DateTimeInterface::RFC822 + string + DATE_RFC822 @@ -218,7 +233,10 @@ - DateTimeInterface::RFC850 + + DateTimeInterface::RFC850 + string + DATE_RFC850 @@ -228,7 +246,10 @@ - DateTimeInterface::RFC1036 + + DateTimeInterface::RFC1036 + string + DATE_RFC1036 @@ -238,7 +259,10 @@ - DateTimeInterface::RFC1123 + + DateTimeInterface::RFC1123 + string + DATE_RFC1123 @@ -248,7 +272,10 @@ - DateTimeInterface::RFC7231 + + DateTimeInterface::RFC7231 + string + DATE_RFC7231 @@ -258,7 +285,10 @@ - DateTimeInterface::RFC2822 + + DateTimeInterface::RFC2822 + string + DATE_RFC2822 @@ -268,7 +298,10 @@ - DateTimeInterface::RFC3339 + + DateTimeInterface::RFC3339 + string + DATE_RFC3339 @@ -278,7 +311,10 @@ - DateTimeInterface::RFC3339_EXTENDED + + DateTimeInterface::RFC3339_EXTENDED + string + DATE_RFC3339_EXTENDED @@ -288,7 +324,10 @@ - DateTimeInterface::RSS + + DateTimeInterface::RSS + string + DATE_RSS @@ -298,7 +337,10 @@ - DateTimeInterface::W3C + + DateTimeInterface::W3C + string + DATE_W3C @@ -323,6 +365,10 @@ + + 8.4.0 + The class constants are now typed. + 8.2.0 diff --git a/reference/datetime/datetimezone.xml b/reference/datetime/datetimezone.xml index 9b5b5c957d2e..5fbde1415d0f 100644 --- a/reference/datetime/datetimezone.xml +++ b/reference/datetime/datetimezone.xml @@ -128,98 +128,140 @@ &reftitle.constants; - DateTimeZone::AFRICA + + DateTimeZone::AFRICA + int + Africa time zones. - DateTimeZone::AMERICA + + DateTimeZone::AMERICA + int + America time zones. - DateTimeZone::ANTARCTICA + + DateTimeZone::ANTARCTICA + int + Antarctica time zones. - DateTimeZone::ARCTIC + + DateTimeZone::ARCTIC + int + Arctic time zones. - DateTimeZone::ASIA + + DateTimeZone::ASIA + int + Asia time zones. - DateTimeZone::ATLANTIC + + DateTimeZone::ATLANTIC + int + Atlantic time zones. - DateTimeZone::AUSTRALIA + + DateTimeZone::AUSTRALIA + int + Australia time zones. - DateTimeZone::EUROPE + + DateTimeZone::EUROPE + int + Europe time zones. - DateTimeZone::INDIAN + + DateTimeZone::INDIAN + int + Indian time zones. - DateTimeZone::PACIFIC + + DateTimeZone::PACIFIC + int + Pacific time zones. - DateTimeZone::UTC + + DateTimeZone::UTC + int + UTC time zones. - DateTimeZone::ALL + + DateTimeZone::ALL + int + All time zones. - DateTimeZone::ALL_WITH_BC + + DateTimeZone::ALL_WITH_BC + int + All time zones including backwards compatible. - DateTimeZone::PER_COUNTRY + + DateTimeZone::PER_COUNTRY + int + Time zones per country. @@ -228,7 +270,27 @@ - +
+ &reftitle.changelog; + + + + + &Version; + &Description; + + + + + 8.4.0 + + The class constants are now typed. + + + + + +