Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Problem/Motivation
Method "Symfony\Component\Routing\RouteCollection::getIterator()" will return "\ArrayIterator" as of its next major version. Doing the same in child class "Drupal\Core\Routing\LazyRouteCollection" will be required when upgrading.
1x in LazyRouteCollectionTest::testGetIterator from Drupal\Tests\Core\Routing
In #3232893: [Symfony 6] Add "ArrayIterator" type hint to the method Drupal\Core\Routing\LazyRouteCollection::getIterator() we added the return type hint to the method Drupal\Core\Routing\LazyRouteCollection::getIterator(), only a mocked method in the test Drupal\Tests\Core\Routing\LazyRouteCollectionTest still return an array.
Steps to reproduce
Proposed resolution
Fix the return value.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3238210-2.patch | 1.16 KB | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedThe fix.
Comment #3
longwaveComment #5
catchCommitted 2adf822 and pushed to 9.3.x. Thanks!