Open
Description
Hello all,
I get a "Call to an undefined method Symfony\Component\Form\FormInterface::getClickedButton()." error when working with Symfony Forms using the following code (within a Symfony Controller class):
$form = $this->createForm(...); $clickedButton = $form->getClickedButton();
The second line will raise the error since the createForm
method returns a FormInterface