mirror of
https://github.com/retailcrm/graphql-php.git
synced 2024-11-22 04:46:04 +03:00
Update src/Language/AST/NodeList.php
Co-Authored-By: Šimon Podlipský <simon@podlipsky.net>
This commit is contained in:
parent
e5b955ecc8
commit
019ed04a51
@ -114,7 +114,7 @@ class NodeList implements ArrayAccess, IteratorAggregate, Countable
|
|||||||
*/
|
*/
|
||||||
public function getIterator()
|
public function getIterator()
|
||||||
{
|
{
|
||||||
foreach (array_keys($this->nodes) as $key) {
|
foreach ($this->nodes as $key => $_) {
|
||||||
yield $this->offsetGet($key);
|
yield $this->offsetGet($key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user