Problem/Motivation
From #3275864: Update to Symfony 6.1.1
New deprecation in BETA2 release of Symfony 6.1:
4x: Since symfony/routing 6.1: The "Symfony\Component\Routing\Matcher\UrlMatcher::handleRouteRequirements()" method will have a new "array $routeParameters" argument in version 7.0, not defining it is deprecated.
4x in UrlTest::testLinkBubbleableMetadata from Drupal\Tests\system\Kernel\Common
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
Issue fork drupal-3278122
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
- 3278122-since-symfonyrouting-6.1
changes, plain diff MR !2395
Comments
Comment #2
spokjeComment #3
spokjeI think/hope we can do the same as in #3276187: Since symfony/routing 6.1: Construction of "Symfony\Component\Routing\Exception\MissingMandatoryParametersException" with an exception message is deprecated, provide the route name and an array of missing parameters instead., with the same reasoning as in #3276187-5: Since symfony/routing 6.1: Construction of "Symfony\Component\Routing\Exception\MissingMandatoryParametersException" with an exception message is deprecated, provide the route name and an array of missing parameters instead.: Silence this deprecation and solve it when SF6.1 is required by D10.0
Comment #4
spokjeComment #5
spokjeComment #6
spokjeLooks like
Symfony\Component\Routing\Matcher\UrlMatcher::handleRouteRequirements()is only used in\Drupal\Core\Routing\Router::doMatchCollection()here.Comment #7
mondrake#3 makes sense IMHO, let's add the deprecation silencer in the parent
Comment #8
mondrakeComment #9
mondrakeParent issue was resolved, this can be worked on now.
Comment #11
mondrakeComment #13
andregp commentedI hope it solves the issue :)
Comment #14
daffie commentedSee the thread on the MR.
Comment #15
andregp commentedThanks for the review @daffie, I just fixed it :)
Comment #16
andregp commentedSorry I had a bit trouble merging here :P
Comment #17
mondrakeComment #18
andregp commentedComment #19
mondrakeThank you - the MR still has a small glitch, see inline, but can be fixed on commit.
Comment #22
catchCommitted/pushed to 10.1.x and cherry-picked to 10.0.x, thanks!