8000 minor #37760 make return type correct (vladyslavstartsev) · symfony/symfony@fcc75d9 · GitHub
[go: up one dir, main page]

Skip to content

Commit fcc75d9

Browse files
committed
minor #37760 make return type correct (vladyslavstartsev)
This PR was merged into the 3.4 branch. Discussion ---------- make return type correct | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | no | License | MIT | Doc PR | no Since the real return type is `\ArrayIterator` AND array of `FormView` I've decided to change it. Also the other reason is that phpstan iks kind of failing because of this and I need to `assert` things in children of this class. Commits ------- 32b5b9e make return type correct
2 parents 74874d5 + 32b5b9e commit fcc75d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Form/FormView.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function offsetUnset($name)
148148
/**
149149
* Returns an iterator to iterate over children (implements \IteratorAggregate).
150150
*
151-
* @return \ArrayIterator|FormView[] The iterator
151+
* @return \ArrayIterator<string, FormView> The iterator
152152
*/
153153
public function getIterator()
154154
{

0 commit comments

Comments
 (0)
0