Skip to content

Commit bd29146

Browse files
committed
bug #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 #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

Lines changed: 1 addition & 1 deletion
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy