Find the best Rector rule to solve your problem. Searching through 1055 rules.
Found 1 rule. That's the one:
Add Symfony ConstraintValidatorInterface type declarations (mixed $value / : void) to validator classes.
use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;
class MyValidator extends ConstraintValidator {
- public function validate($value, Constraint $constraint) {
+ public function validate(mixed $value, Constraint $constraint): void {
}
}