Skip to content

Commit 75edc24

Browse files
Valentinwouterj
Valentin
authored andcommitted
[Form] Fix syntax error in code snippet
| Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | 3.0, 2.8
1 parent 172b72b commit 75edc24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form/form_events.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ Creating and binding an event listener to the form is very easy::
306306
// If the data was submitted previously, the additional value that is
307307
// included in the request variables needs to be removed.
308308
if (true === $user['show_email']) {
309-
$form->add('email', EmailType::class
309+
$form->add('email', EmailType::class);
310310
} else {
311311
unset($user['email']);
312312
$event->setData($user);

0 commit comments

Comments
 (0)