Skip to content

Commit fafab10

Browse files
jkgroupenicolas-grekas
authored andcommitted
[Validator] Add missing HasNamedArguments to some constraints
1 parent 577a5a3 commit fafab10

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Validator/Constraints/UserPassword.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Security\Core\Validator\Constraints;
1313

14+
use Symfony\Component\Validator\Attribute\HasNamedArguments;
1415
use Symfony\Component\Validator\Constraint;
1516

1617
#[\Attribute(\Attribute::TARGET_PROPERTY | \Attribute::TARGET_METHOD | \Attribute::IS_REPEATABLE)]
@@ -25,6 +26,7 @@ class UserPassword extends Constraint
2526
public string $message = 'This value should be the user\'s current password.';
2627
public string $service = 'security.validator.user_password';
2728

29+
#[HasNamedArguments]
2830
public function __construct(?array $options = null, ?string $message = null, ?string $service = null, ?array $groups = null, mixed $payload = null)
2931
{
3032
parent::__construct($options, $groups, $payload);

0 commit comments

Comments
 (0)