From 4036c38ed9f483e83d28af053da5789bd30fd8fa Mon Sep 17 00:00:00 2001 From: Valery Maslov Date: Tue, 28 Nov 2023 10:24:14 +0300 Subject: [PATCH] Minor fix --- src/Validator/ConfirmPasswordValidator.php | 3 +-- src/Validator/RegisteredUserValidator.php | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Validator/ConfirmPasswordValidator.php b/src/Validator/ConfirmPasswordValidator.php index 9df5a0f4..ef6efde0 100644 --- a/src/Validator/ConfirmPasswordValidator.php +++ b/src/Validator/ConfirmPasswordValidator.php @@ -9,10 +9,9 @@ final class ConfirmPasswordValidator extends ConstraintValidator { + /** @param ConfirmPassword $constraint */ public function validate($value, Constraint $constraint): void { - /** @var ConfirmPassword $constraint */ - if (null === $value || '' === $value) { return; } diff --git a/src/Validator/RegisteredUserValidator.php b/src/Validator/RegisteredUserValidator.php index 40194bcc..1c360826 100644 --- a/src/Validator/RegisteredUserValidator.php +++ b/src/Validator/RegisteredUserValidator.php @@ -15,10 +15,9 @@ public function __construct(private readonly UserRepository $userRepository) { } + /** @param RegisteredUser $constraint */ public function validate($value, Constraint $constraint): void { - /** @var RegisteredUser $constraint */ - if (null === $value || '' === $value) { return; }