Skip to content

Commit e6ccb44

Browse files
committed
Merge pull request symfony#2801 from xabbuh/fix-dynamic-form-modification
remove useless use of variable
2 parents 682052f + b6edce3 commit e6ccb44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/form/dynamic_form_modification.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ sport like this::
419419

420420
$builder->addEventListener(
421421
FormEvents::PRE_SET_DATA,
422-
function(FormEvent $event) use($user, $factory){
422+
function(FormEvent $event) use($factory){
423423
$form = $event->getForm();
424424

425425
// this would be your entity, i.e. SportMeetup

0 commit comments

Comments
 (0)