diff --git a/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/PaymentType.php b/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/PaymentType.php index 080af9ba51..62b1b54081 100644 --- a/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/PaymentType.php +++ b/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/PaymentType.php @@ -69,7 +69,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('paymentProvider', PaymentProviderChoiceType::class, [ - 'constraints' => [new Valid(), new NotBlank(['groups' => [$this->validationGroups]])], + 'constraints' => [new Valid(), new NotBlank(['groups' => $this->validationGroups])], 'label' => 'coreshop.ui.payment_provider', 'subject' => $options['payment_subject'], ]) diff --git a/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/SummaryType.php b/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/SummaryType.php index d67ee05440..429565841e 100644 --- a/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/SummaryType.php +++ b/src/CoreShop/Bundle/CoreBundle/Form/Type/Checkout/SummaryType.php @@ -27,7 +27,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) { $builder ->add('acceptTerms', CheckboxType::class, [ - 'constraints' => [new NotBlank(['groups' => [$this->validationGroups]])], + 'constraints' => [new NotBlank(['groups' => $this->validationGroups])], 'label' => 'coreshop.ui.accept_terms', 'mapped' => false, ]); diff --git a/src/CoreShop/Bundle/CoreBundle/Form/Type/GuestRegistrationType.php b/src/CoreShop/Bundle/CoreBundle/Form/Type/GuestRegistrationType.php index 4ddbe0df68..450e4df549 100644 --- a/src/CoreShop/Bundle/CoreBundle/Form/Type/GuestRegistrationType.php +++ b/src/CoreShop/Bundle/CoreBundle/Form/Type/GuestRegistrationType.php @@ -54,7 +54,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) ], 'guest' => true, 'constraints' => [ - new Valid(['groups' => [$this->validationGroupsGuest]]), + new Valid(['groups' => $this->validationGroupsGuest]), ], ]) ->add('address', AddressType::class, [ @@ -63,7 +63,7 @@ public function buildForm(FormBuilderInterface $builder, array $options) 'class' => 'cs-address', ], 'constraints' => [ - new Valid(['groups' => [$this->validationGroups]]), + new Valid(['groups' => $this->validationGroups]), ], ])