8000 [Form] Fix info for the `calendar` option of the `DateType` form type · symfony/symfony@0aeb058 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0aeb058

Browse files
[Form] Fix info for the calendar option of the DateType form type
1 parent 1c8cd56 commit 0aeb058

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