Skip to content

Commit bd29146

Browse files
committed
bug symfony#6115 [Form] Fix syntax error in code snippet (valisj)
This PR was submitted for the 3.0 branch but it was merged into the 2.8 branch instead (closes symfony#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
2 parents 172b72b + 75edc24 commit bd29146

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)