Skip to content

Instantly share code, notes, and snippets.

View MartinLyne's full-sized avatar
👋
Hey

Martin Lyne MartinLyne

👋
Hey
View GitHub Profile
/**
* Method to handle form errors.
*
* @param FormInterface $form
*
* @throws \Symfony\Component\HttpKernel\Exception\HttpException
*/
public function handleFormError(FormInterface $form): void
{
$errors = [];