Skip to content

Commit f654df3

Browse files
minor #58055 [Form] Fix info for the calendar option of the DateType form type (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [Form] Fix info for the `calendar` option of the `DateType` form type | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT Detected while writing the documentation. The option should also accept `IntlDateFormatter` constants, so `int` is missing from allowed types of the option. Commits ------- 0aeb058 [Form] Fix info for the `calendar` option of the `DateType` form type
2 parents 47f6194 + 0aeb058 commit f654df3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/Extension/Core/Type/DateType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public function configureOptions(OptionsResolver $resolver): void
323323
$resolver->setAllowedTypes('input_format', 'string');
324324
$resolver->setAllowedTypes('calendar', ['null', \IntlCalendar::class]);
325325

326-
$resolver->setInfo('calendar', 'The calendar to use for formatting and parsing the date. The value should be one of the \IntlDateFormatter calendar constants or an instance of the \IntlCalendar to use.');
326+
$resolver->setInfo('calendar', 'The calendar to use for formatting and parsing the date. The value should be an instance of \IntlCalendar. By default, the Gregorian calendar with the default locale is used.');
327327

328328
$resolver->setNormalizer('html5', static function (Options $options, $html5) {
329329
if ($html5 && 'single_text' === $options['widget'] && self::HTML5_FORMAT !== $options['format']) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy