Replace implementing deprecated interface Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface with ValueResolverInterface

Created on 25 August 2023, over 1 year ago
Updated 27 August 2023, over 1 year ago

Problem/Motivation

As (soon to be) discovered by mglaman/phpstan-drupal 1.2.0 (see πŸ“Œ Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again Fixed ), we are using some deprecated functionality throughout Drupal core.

This issue is for dealing with:

 ------ ------------------------------------------------------------------------------- 
  Line   core/lib/Drupal/Core/Controller/ArgumentResolver/Psr7RequestValueResolver.php  
 ------ ------------------------------------------------------------------------------- 
  15     Class                                                                          
         Drupal\Core\Controller\ArgumentResolver\Psr7RequestValueResolver               
         implements deprecated interface                                                
         Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface:        
         since Symfony 6.2, implement ValueResolverInterface instead                    
 ------ ------------------------------------------------------------------------------- 

and


 ------ ------------------------------------------------------------------------------ 
  Line   core/lib/Drupal/Core/Controller/ArgumentResolver/RouteMatchValueResolver.php  
 ------ ------------------------------------------------------------------------------ 
  15     Class Drupal\Core\Controller\ArgumentResolver\RouteMatchValueResolver         
         implements deprecated interface                                               
         Symfony\Component\HttpKernel\Controller\ArgumentValueResolverInterface:       
         since Symfony 6.2, implement ValueResolverInterface instead                   
 ------ ------------------------------------------------------------------------------ 

Steps to reproduce

Proposed resolution

since we're on SF >= 6.2 in 10.1.x and 11.x: Remove implementing the deprecated interface, in both cases we're also implementing the proposed one.

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Fixed

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated about 2 hours ago

Created by

πŸ‡³πŸ‡±Netherlands spokje

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024