Issue #3232893 by daffie: [Symfony 6] Add "ArrayIterator" type hint to the method Drupal\Core\Routing\LazyRouteCollection::getIterator()

merge-requests/1216/head
Alex Pott 2021-09-20 14:23:48 +01:00
parent a8d3f780cc
commit bc46c77b4c
No known key found for this signature in database
GPG Key ID: 31905460D4A69276
1 changed files with 1 additions and 2 deletions

View File

@ -23,8 +23,7 @@ class LazyRouteCollection extends RouteCollection {
/**
* {@inheritdoc}
*/
#[\ReturnTypeWillChange]
public function getIterator() {
public function getIterator(): \ArrayIterator {
return new \ArrayIterator($this->all());
}