Skip to content

Commit d4090ce

Browse files
javiereguiluzweaverryan
authored andcommitted
minor #18081 Update events.rst (hbgamra)
This PR was merged into the 6.2 branch. Discussion ---------- Update events.rst Add void return type <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `6.x` for features of unreleased versions). --> Commits ------- 752721e Update events.rst
1 parent 34e6694 commit d4090ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

form/events.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ method of the ``FormFactory``::
272272
$form = $formFactory->createBuilder()
273273
->add('username', TextType::class)
274274
->add('showEmail', CheckboxType::class)
275-
->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) {
275+
->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event): void {
276276
$user = $event->getData();
277277
$form = $event->getForm();
278278

0 commit comments

Comments
 (0)