Problem/Motivation

PHPStan found a deprecation:

Line   modules/custom/menu_per_role/menu_per_role.module                    
 ------ --------------------------------------------------------------------- 
  101    Call to deprecated method getImplementations() of class              
         Drupal\Core\Extension\ModuleHandlerInterface:                        
         in drupal:9.4.0 and is removed from drupal:10.0.0. Instead you       
           should use ModuleHandlerInterface::invokeAllWith() for hook        
         invocations                                                          
           or you should use ModuleHandlerInterface::hasImplementations() to  
           determine if hooks implementations exist.                          
 ------ --------------------------------------------------------------------- 

I will also increase core requirement to 9.4

Command icon 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:

Comments

Grimreaper created an issue. See original summary.

  • Grimreaper committed 382bb02 on 8.x-1.x
    Issue #3291328 by Grimreaper: Fix deprecation from core 9.4
    
grimreaper’s picture

Assigned: grimreaper » Unassigned
Status: Active » Fixed

Status: Fixed » Closed (fixed)

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