TypeError: Drupal\ckeditor5_premium_features\Utility\PermissionHelper::__construct(): Argument #2 ($moduleHandler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given

Created on 16 October 2024, about 1 month ago

Problem/Motivation

After upgrading core to 10.3, i'm seeing the following error on every drush command:

TypeError: Drupal\ckeditor5_premium_features\Utility\PermissionHelper::__construct(): Argument #2 ($moduleHandler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /var/www/html/app/web/core/lib/Drupal/Component/DependencyInjection/Container.php on line 261 in /var/www/html/app/web/modules/contrib/ckeditor5_premium_features/src/Utility/PermissionHelper.php on line 32 #0 /var/www/html/app/web/core/lib/Drupal/Component/DependencyInjection/Container.php(261): Drupal\ckeditor5_premium_features\Utility\PermissionHelper->__construct()

The issue is the PermissionHelper class constructor calling ModuleHandler instead of ModuleHandlerInterface.

I'm going to post a patch including the fix.

🐛 Bug report
Status

Active

Version

1.3

Component

Code

Created by

🇫🇷France christophe.klein

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024