Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Coderberg committed Nov 28, 2023
1 parent 5274194 commit 4036c38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/Validator/ConfirmPasswordValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
3 changes: 1 addition & 2 deletions src/Validator/RegisteredUserValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 4036c38

Please sign in to comment.