Skip to content

Commit 18934e9

Browse files
authored
Update form.rst for flattened form errors
Updated to reflect the code.
1 parent 8c6e96a commit 18934e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/form.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ method to access the list of errors. It returns a
750750
$errors = $form['firstName']->getErrors();
751751

752752
// a FormErrorIterator instance in a flattened structure
753-
$errors = $form->getErrors(true);
753+
$errors = $form->getErrors(false, true);
754754

755755
// a FormErrorIterator instance representing the form tree structure
756756
$errors = $form->getErrors(true, false);

0 commit comments

Comments
 (0)