Find the best Rector rule to solve your problem. Searching through 675 rules.
Found 1 rule. That's the one:
Symplify form rendering by not calling ->createView()
on render
function
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
class ReplaceFormCreateViewFunctionCall extends AbstractController
{
public function form(): Response
{
return $this->render('form.html.twig', [
- 'form' => $form->createView(),
+ 'form' => $form,
]);
}
}