Skip to content

[Form] Allow integer for the calendar option of DateType #20430

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 2, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions reference/forms/types/date.rst
Original file line number Diff line number Diff line change
Expand Up @@ -156,11 +156,12 @@ values for the year, month and day fields::
``calendar``
~~~~~~~~~~~~

**type**: ``\IntlCalendar`` **default**: ``null``
**type**: ``integer`` or ``\IntlCalendar`` **default**: ``null``

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

.. versionadded:: 7.2

Expand Down