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

Found 1 rule. That's the one:

FormIsValidRector

Adds $form->isSubmitted() validation to all $form->isValid() calls in Form in Symfony

-if ($form->isValid()) {
+if ($form->isSubmitted() && $form->isValid()) {
 }