Argument #3 ($module_handler) must be of type ModuleHandler, HookEventDispatcherModuleHandler given

Created on 14 March 2024, 8 months ago
Updated 1 April 2024, 8 months ago

Problem/Motivation

The following error appears when visiting the image style generate form, but only if the Hook Event Dispatcher module is installed:

Drupal\easy_responsive_images\Form\Config\GenerateImageStyles::__construct(): Argument #3 ($module_handler) must be of type Drupal\Core\Extension\ModuleHandler, Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given

Steps to reproduce

Visit /admin/config/media/image-styles/generate.

Proposed resolution

Typehint the interface instead of the class.

🐛 Bug report
Status

Fixed

Version

1.3

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

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