8000 Merge branch '7.3' into 7.4 · symfony/security-core@df9ce9a · GitHub
[go: up one dir, main page]

Skip to content

Commit df9ce9a

Browse files
Merge branch '7.3' into 7.4
* 7.3: Revert "minor #60377 [HttpFoundation] Emit PHP warning when `Response::sendHeaders()` is called while output has already been sent (ivo95v)" [Validator] Add missing HasNamedArguments to some constraints
2 parents 47b3412 + fafab10 commit df9ce9a

File tree

1 fil 8000 e 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)
0