From 75edc24c510c15b97d63aed979b2ef48ac11e157 Mon Sep 17 00:00:00 2001 From: Valentin Date: Thu, 7 Jan 2016 11:29:32 +0100 Subject: [PATCH] [Form] Fix syntax error in code snippet | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 3.0, 2.8 --- components/form/form_events.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/form/form_events.rst b/components/form/form_events.rst index 83c7b2657d2..dee049fc336 100644 --- a/components/form/form_events.rst +++ b/components/form/form_events.rst @@ -306,7 +306,7 @@ Creating and binding an event listener to the form is very easy:: // If the data was submitted previously, the additional value that is // included in the request variables needs to be removed. if (true === $user['show_email']) { - $form->add('email', EmailType::class + $form->add('email', EmailType::class); } else { unset($user['email']); $event->setData($user);