8000 minor #29606 [Form] Fixed FormErrorIterator class phpdoc (vudaltsov) · symfony/symfony@4886173 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 4886173

Browse files
minor #29606 [Form] Fixed FormErrorIterator class phpdoc (vudaltsov)
This PR was squashed before being merged into the 3.4 branch (closes #29606). Discussion ---------- [Form] Fixed FormErrorIterator class phpdoc | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Fixed an outdated paragraph in `FormErrorIterator` (since #10418). Commits ------- 732b863 [Form] Fixed FormErrorIterator class phpdoc
2 parents 509d952 + 732b863 commit 4886173

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