Skip to content

Commit 01ae9eb

Browse files
committed
Add HasNamedArguments attribute
1 parent 4a2a45f commit 01ae9eb

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/google-authenticator/Security/TwoFactor/Validator/Constraints/UserGoogleTotpCode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Scheb\TwoFactorBundle\Security\TwoFactor\Validator\Constraints;
66

77
use Attribute;
8+
use Symfony\Component\Validator\Attribute\HasNamedArguments;
89
use Symfony\Component\Validator\Constraint;
910

1011
/**
@@ -23,6 +24,7 @@ class UserGoogleTotpCode extends Constraint
2324
public string $translationDomain = 'SchebTwoFactorBundle';
2425
public string $service = 'scheb_two_factor.security.totp.validator.user_google_totp_code';
2526

27+
#[HasNamedArguments]
2628
public function __construct(array|null $options = null, string|null $message = null, string|null $translationDomain = null, string|null $service = null, array|null $groups = null, mixed $payload = null)
2729
{
2830
parent::__construct($options, $groups, $payload);

src/totp/Security/TwoFactor/Validator/Constraints/UserTotpCode.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
namespace Scheb\TwoFactorBundle\Security\TwoFactor\Validator\Constraints;
66

77
use Attribute;
8+
use Symfony\Component\Validator\Attribute\HasNamedArguments;
89
use Symfony\Component\Validator\Constraint;
910

1011
/**
@@ -23,6 +24,7 @@ class UserTotpCode extends Constraint
2324
public string $translationDomain = 'SchebTwoFactorBundle';
2425
public string $service = 'scheb_two_factor.security.totp.validator.user_totp_code';
2526

27+
#[HasNamedArguments]
2628
public function __construct(array|null $options = null, string|null $message = null, string|null $translationDomain = null, string|null $service = null, array|null $groups = null, mixed $payload = null)
2729
{
2830
parent::__construct($options, $groups, $payload);

0 commit comments

Comments
 (0)