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
-------
32b5b9e1d7
make return type correct
This commit is contained in:
commit
fcc75d9563
@ -148,7 +148,7 @@ class FormView implements \ArrayAccess, \IteratorAggregate, \Countable
|
||||
/**
|
||||
* Returns an iterator to iterate over children (implements \IteratorAggregate).
|
||||
*
|
||||
* @return \ArrayIterator|FormView[] The iterator
|
||||
* @return \ArrayIterator<string, FormView> The iterator
|
||||
*/
|
||||
public function getIterator()
|
||||
{
|
||||
|
Reference in New Issue
Block a user