Suppress warning about call to deprecated method registerLoader() of class Doctrine\Common\Annotations\AnnotationRegistry in core/.deprecation-ignore.txt

Created on 25 August 2023, 10 months ago
Updated 26 August 2023, 10 months 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/Component/Annotation/Plugin/Discovery/AnnotatedClassDiscovery.php  
 ------ ----------------------------------------------------------------------------------- 
  115    Call to deprecated method registerLoader() of class                                
         Doctrine\Common\Annotations\AnnotationRegistry:                                    
         This method is deprecated and will be removed in                                   
                     doctrine/annotations 2.0. Annotations will be autoloaded               
         in 2.0.                                                                            
 ------ ----------------------------------------------------------------------------------- 

and

 ------ ----------------------------------------------------------------------------------------- 
  Line   core/modules/migrate/src/Plugin/Discovery/AnnotatedClassDiscoveryAutomatedProviders.php  
 ------ ----------------------------------------------------------------------------------------- 
  82     Call to deprecated method registerLoader() of class                                      
         Doctrine\Common\Annotations\AnnotationRegistry:                                          
         This method is deprecated and will be removed in                                         
                     doctrine/annotations 2.0. Annotations will be autoloaded                     
         in 2.0.                                                                                  
 ------ ----------------------------------------------------------------------------------------- 

Note: Depending on the landing of πŸ“Œ Bump mglaman/phpstan-drupal to latest to make daily "updated deps" QA run pass again Fixed before the landing of this issue, we also might need to remove two suppressions from core/phpstan-baseline.neon

Steps to reproduce

Proposed resolution


Attempt #2:


Back to Attempt #2, .deprecation-ignore.txt only work for deprecations coming out of the bowels of Symfony itself.
There's nothing for us to do here until we actually use doctrine/annotations 2.0

Let's keep these two suppressions in the baseline until then.

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Closed: won't fix

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 1 minute 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.69.0 2024