Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Method "Symfony\Component\Routing\Matcher\UrlMatcherInterface::match()" will return "array" as of its next major version. Doing the same in implementation "Drupal\Core\Routing\AccessAwareRouter" will be required when upgrading.
Method "Symfony\Component\Routing\Matcher\UrlMatcherInterface::match()" will return "array" as of its next major version. Doing the same in implementation "Drupal\Core\Routing\AccessAwareRouterInterface" will be required when upgrading.
Method "Symfony\Component\Routing\Matcher\UrlMatcherInterface::match()" will return "array" as of its next major version. Doing the same in implementation "Drupal\Core\Routing\Router" will be required when upgrading.
Steps to reproduce
Proposed resolution
Add the "array" return type hint.
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#2 | 3233041-2.patch | 1.74 KB | daffie |
Comments
Comment #2
daffie CreditAttribution: daffie commentedThe fix.
Comment #3
daffie CreditAttribution: daffie commentedI could not find any instances where the method is overridden in contrib. See: http://grep.xnddx.ru/search?text=public+function+match%28%24pathinfo%29&....
Comment #4
longwaveComment #5
alexpottCommitted 61b7e46 and pushed to 9.3.x. Thanks!