Skip to content

Commit 7c39d38

Browse files
committed
Update book/forms.rst
Fix typo (missing ";") in source code sample for dynamic validation groups
1 parent c7ade79 commit 7c39d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/forms.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ You can also define whole logic inline by using a Closure::
439439
'validation_groups' => function(FormInterface $form) {
440440
$data = $form->getData();
441441
if (Entity\Client::TYPE_PERSON == $data->getType()) {
442-
return array('person')
442+
return array('person');
443443
} else {
444444
return array('company');
445445
}

0 commit comments

Comments
 (0)