Skip to content

Commit fac004a

Browse files
committed
Merge branch '7.2' into 7.3
* 7.2: Allow integer for the calendar option of DateType
2 parents a5305a4 + a2bd31b commit fac004a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

reference/forms/types/date.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,12 @@ values for the year, month and day fields::
156156
``calendar``
157157
~~~~~~~~~~~~
158158

159-
**type**: ``\IntlCalendar`` **default**: ``null``
159+
**type**: ``integer`` or ``\IntlCalendar`` **default**: ``null``
160160

161161
The calendar to use for formatting and parsing the date. The value should be
162-
an instance of the :phpclass:`IntlCalendar` to use. By default, the Gregorian
163-
calendar with the application default locale is used.
162+
an ``integer`` from :phpclass:`IntlDateFormatter` calendar constants or an instance
163+
of the :phpclass:`IntlCalendar` to use. By default, the Gregorian calendar
164+
with the application default locale is used.
164165

165166
.. versionadded:: 7.2
166167

0 commit comments

Comments
 (0)