Skip to content

Commit

Permalink
Merge branch '5.x' into ref/http-exception-message
Browse files Browse the repository at this point in the history
  • Loading branch information
Davidmattei authored Dec 20, 2023
2 parents c9c4477 + 81cc229 commit 1153ca9
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

final class IsBirthDateValidator extends ConstraintValidator
{
public function validate($value, Constraint $constraint): void
public function validate(mixed $value, Constraint $constraint): void
{
if (!$constraint instanceof IsBirthDate) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

final class IsEmailMultipleValidator extends AbstractConstraintValidator
{
public function validate($value, Constraint $constraint): void
public function validate(mixed $value, Constraint $constraint): void
{
if (!$constraint instanceof IsEmailMultiple) {
throw new UnexpectedTypeException($constraint, IsEmailMultiple::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(private readonly ExpressionServiceInterface $express
{
}

public function validate($value, Constraint $constraint): void
public function validate(mixed $value, Constraint $constraint): void
{
if (!$constraint instanceof IsExpression) {
throw new UnexpectedTypeException($constraint, IsExpression::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

final class IsInternationalPhoneNumberValidator extends AbstractConstraintValidator
{
public function validate($value, Constraint $constraint): void
public function validate(mixed $value, Constraint $constraint): void
{
if (!$constraint instanceof IsInternationalPhoneNumber) {
throw new UnexpectedTypeException($constraint, IsInternationalPhoneNumber::class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public function __construct(private readonly LoggerInterface $logger)
{
}

public function validate($value, Constraint $constraint): void
public function validate(mixed $value, Constraint $constraint): void
{
if (!$this->isEmpty($value) || !$constraint instanceof IsRequiredIf) {
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function __construct(private readonly ConfirmationService $confirmationSe
{
}

public function validate($value, Constraint $constraint): void
public function validate(mixed $value, Constraint $constraint): void
{
if (null === $value || !$constraint instanceof IsVerificationCode) {
return;
Expand Down

0 comments on commit 1153ca9

Please sign in to comment.