Problem/Motivation

Method "Symfony\Component\Routing\Matcher\UrlMatcher::getAttributes()" will return "array" as of its next major version. Doing the same in child class "Drupal\Core\Routing\UrlMatcher" 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 3232888-2.patch662 bytesdaffie
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

daffie created an issue. See original summary.

daffie’s picture

Status: Active » Needs review
FileSize
662 bytes

I could not find any instances in contrib where the method was overridden. See: http://grep.xnddx.ru/search?text=%5CUrlMatcher&filename=

longwave’s picture

Status: Needs review » Reviewed & tested by the community

This one looks trivial.

larowlan’s picture

Status: Reviewed & tested by the community » Fixed

Committed d2e9155 and pushed to 9.3.x. Thanks!

  • larowlan committed d2e9155 on 9.3.x
    Issue #3232888 by daffie: [Symfony 6] Add "array" type hint to the...

Status: Fixed » Closed (fixed)

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