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

Found 3 rules:

AddSymfonyConstraintValidatorTypeDeclarationsRector

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

RemoveStateCacheSettingRector

Removes deprecated $settings['state_cache'] assignments. State caching is permanently enabled since drupal:11.0.0 and the setting has no effect

-$settings['state_cache'] = TRUE;
 $settings['other_setting'] = TRUE;

GetNameToNameRector

Replace deprecated TestCase::getName() with TestCase::name() for PHPUnit 10 compatibility

-$this->getName()
+$this->name()