Unverified Commit bc46c77b authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3232893 by daffie: [Symfony 6] Add "ArrayIterator" type hint to the...

Issue #3232893 by daffie: [Symfony 6] Add "ArrayIterator" type hint to the method Drupal\Core\Routing\LazyRouteCollection::getIterator()
parent a8d3f780
Loading
Loading
Loading
Loading
+1 −2
Changes for core/lib/Drupal/Core/Routing/LazyRouteCollection.php: 1 added line, 2 removed lines.
Original line number Diff line number Diff line
@@ -23,8 +23,7 @@ public function __construct(RouteProviderInterface $provider) {
  /**
   * {@inheritdoc}
   */
  #[\ReturnTypeWillChange]
  public function getIterator() {
  public function getIterator(): \ArrayIterator {
    return new \ArrayIterator($this->all());
  }