Find a Rector rule

Find the best Rector rule to solve your problem. Searching through 1109 rules.

Found 1 rule. That's the one: Clear

drupal/core 11.0 1 match

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 {
     }
 }