Skip to content

Commit 4c98e58

Browse files
authored
Merge pull request #347 from kbond/fix-tests
fix tests
2 parents 79d3394 + 5f35099 commit 4c98e58

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

tests/Fixtures/App/src/Form/ChangePasswordFormType.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
3333
],
3434
'first_options' => [
3535
'constraints' => [
36-
new NotBlank([
37-
'message' => 'Please enter a password',
38-
]),
39-
new Length([
40-
'min' => 12,
41-
'minMessage' => 'Your password should be at least {{ limit }} characters',
36+
new NotBlank(
37+
message: 'Please enter a password',
38+
),
39+
new Length(
40+
min: 12,
41+
minMessage: 'Your password should be at least {{ limit }} characters',
4242
// max length allowed by Symfony for security reasons
43-
'max' => 4096,
44-
]),
43+
max: 4096,
44+
),
4545
new PasswordStrength(),
4646
new NotCompromisedPassword(),
4747
],

tests/Fixtures/App/src/Form/ResetPasswordRequestFormType.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
2323
->add('email', EmailType::class, [
2424
'attr' => ['autocomplete' => 'email'],
2525
'constraints' => [
26-
new NotBlank([
27-
'message' => 'Please enter your email',
28-
]),
26+
new NotBlank(
27+
message: 'Please enter your email',
28+
),
2929
],
3030
])
3131
;

0 commit comments

Comments
 (0)