Skip to content

Commit af8f0c2

Browse files
authored
Update ProfileFormType.php
1 parent 761a8a7 commit af8f0c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Form/Type/ProfileFormType.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
use Symfony\Component\Form\FormBuilderInterface;
1717
use Symfony\Component\OptionsResolver\OptionsResolver;
1818
use Symfony\Component\Security\Core\Validator\Constraints\UserPassword;
19-
use Symfony\Component\Validator\Constraints\NotNull;
19+
use Symfony\Component\Validator\Constraints\NotBlank;
2020

2121
class ProfileFormType extends AbstractType
2222
{
@@ -53,7 +53,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
5353
'translation_domain' => 'FOSUserBundle',
5454
'mapped' => false,
5555
'constraints' => array(
56-
new NotNull(),
56+
new NotBlank(),
5757
new UserPassword($constraintsOptions),
5858
),
5959
));

0 commit comments

Comments
 (0)