Skip to content

Commit

Permalink
[Form] Fix syntax error in code snippet
Browse files Browse the repository at this point in the history
| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 3.0, 2.8
  • Loading branch information
Valentin authored and wouterj committed Jan 7, 2016
1 parent 172b72b commit 75edc24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/form_events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 75edc24

Please sign in to comment.