Skip to content

Commit 5130def

Browse files
committed
Fix deprecation message
1 parent 7c8363c commit 5130def

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

src/Validator/Password.php

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,14 @@ class Password extends Compound
2525
protected function getConstraints(array $options): array
2626
{
2727
return [
28-
new Assert\NotBlank([
29-
'message' => 'Please enter a password',
30-
]),
28+
new Assert\NotBlank(message: 'Please enter a password'),
3129
new Assert\Type('string'),
32-
new Assert\Length([
33-
'min' => 8,
34-
'minMessage' => 'Your password should be at least {{ limit }} characters',
30+
new Assert\Length(
31+
min: 8,
32+
minMessage: 'Your password should be at least {{ limit }} characters',
3533
// max length allowed by Symfony for security reasons
36-
'max' => 4096,
37-
]),
34+
max: 4096,
35+
),
3836
new Assert\NotCompromisedPassword(skipOnError: true),
3937
];
4038
}

0 commit comments

Comments
 (0)