Problem/Motivation

Method "Symfony\Component\Routing\Matcher\RequestMatcherInterface::matchRequest()" 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\RequestMatcherInterface::matchRequest()" will return "array" as of its next major version. Doing the same in implementation "Drupal\Core\Routing\Router" will be required when upgrading.

Method "Symfony\Component\Routing\Matcher\RequestMatcherInterface::matchRequest()" will return "array" as of its next major version. Doing the same in implementation "Drupal\Core\Routing\AccessAwareRouter" 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

CommentFileSizeAuthor
#2 3233045-2.patch1.83 KBdaffie

Comments

daffie created an issue. See original summary.

daffie’s picture

Status: Active » Needs review
StatusFileSize
new1.83 KB

The fix.

longwave’s picture

Status: Needs review » Reviewed & tested by the community

Checked contrib and nothing seems to extend these, so this one is good to go if bot agrees.

  • larowlan committed 1151e3b on 9.3.x
    Issue #3233045 by daffie, longwave: [Symfony 6] Add "array" type hint to...
larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Committed 1151e3b and pushed to 9.3.x. Thanks!

Crediting @longwave for doing the contrib research

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.