10000 minor #20430 [Form] Allow integer for the calendar option of `DateTyp… · symfony/symfony-docs@a2bd31b · GitHub
[go: up one dir, main page]

Skip to content

Commit a2bd31b

Browse files
committed
minor #20430 [Form] Allow integer for the calendar option of DateType (MrYamous)
This PR was merged into the 7.2 branch. Discussion ---------- [Form] Allow integer for the calendar option of `DateType` Completes #20145 after [code PR](symfony/symfony#59014) Commits ------- 2083dc2 Allow integer for the calendar option of DateType
2 parents db2e753 + 2083dc2 commit a2bd31b

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)
0