8000 [Form] Fixed FormErrorIterator class phpdoc · symfony/symfony@732b863 · GitHub
[go: up one dir, main page]

Skip to content

Commit 732b863

Browse files
vudaltsovnicolas-grekas
authored andcommitted
[Form] Fixed FormErrorIterator class phpdoc
1 parent c718a8e commit 732b863

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Symfony/Component/Form/FormErrorIterator.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@
1919
/**
2020
* Iterates over the errors of a form.
2121
*
22-
* Optionally, this class supports recursive iteration. In order to iterate
23-
* recursively, set the constructor argument $deep to true. Now each element
24-
* returned by the iterator is either an instance of {@link FormError} or of
25-
* {@link FormErrorIterator}, in case the errors belong to a sub-form.
22+
* This class supports recursive iteration. In order to iterate recursively,
23+
* pass a structure of {@link FormError} and {@link FormErrorIterator} objects
24+
* to the $errors constructor argument.
2625
*
2726
* You can also wrap the iterator into a {@link \RecursiveIteratorIterator} to
2827
* flatten the recursive structure into a flat list of errors.

0 commit comments

Comments
 (0)
0