Skip to content

Commit

Permalink
bug #6115 [Form] Fix syntax error in code snippet (valisj)
Browse files Browse the repository at this point in the history
This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes #6115).

Discussion
----------

[Form] Fix syntax error in code snippet

| Q             | A
| ------------- | ---
| Doc fix?      | yes
| New docs?     | no
| Applies to    | 3.0, 2.8

Commits
-------

75edc24 [Form] Fix syntax error in code snippet
  • Loading branch information
wouterj committed Jan 7, 2016
2 parents 172b72b + 75edc24 commit bd29146
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 bd29146

Please sign in to comment.