Fix PHPStan L1 errors "Call to an undefined Drupal\Component\Plugin\PluginManagerInterface::getSortedDefinitions" in context of class Drupal\Tests\Core\Plugin\CategorizingPluginManager

Created on 17 January 2023, over 1 year ago
Updated 8 June 2024, 21 days ago

Problem/Motivation

Split off from πŸ“Œ Fix PHPStan L2 errors "Parameter $foo of method Foo::bar() has invalid type Foo\Baz." and "Method Foo::bar() has invalid return type Foo\Baz. " Fixed

See https://git.drupalcode.org/project/drupal/-/merge_requests/3177#note_141553

We want to get rid of these errors in the PHPStan baseline:

  Line   core/lib/Drupal/Core/Plugin/CategorizingPluginManagerTrait.php (in     
         context of class Drupal\Tests\Core\Plugin\CategorizingPluginManager)   
 ------ ----------------------------------------------------------------------- 
  105    Call to an undefined method                                            
         Drupal\Component\Plugin\PluginManagerInterface::getSortedDefinitions(  
         ).    

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BaseΒ  β†’

Last updated 2 minutes ago

Created by

πŸ‡³πŸ‡±Netherlands Spokje

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024