Skip to content

Commit d243d10

Browse files
committed
ensure that submitted dates are valid choices
1 parent aa0c861 commit d243d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/Fixtures/Form/CancelSubscriptionType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CancelSubscriptionType extends AbstractType
2626
public function buildForm(FormBuilderInterface $builder, array $options): void
2727
{
2828
$builder
29-
->add('cancellation_date', DateType::class, $options['cancellation_date_options'] + ['widget' => 'choice'])
29+
->add('cancellation_date', DateType::class, $options['cancellation_date_options'] + ['widget' => 'choice', 'years' => range(2015, 2025)])
3030
;
3131
}
3232

0 commit comments

Comments
 (0)