Problem/Motivation
The last parameter in WavesurferAudioPlayer::__construct() specifies the concrete class Drupal\Core\Extension\ModuleHandler which breaks the status report page of the admin
TypeError: Argument 8 passed to Drupal\audiofield\Plugin\AudioPlayer\WavesurferAudioPlayer::__construct() must be an instance of Drupal\Core\Extension\ModuleHandler, instance of Drupal\hook_event_dispatcher\HookEventDispatcherModuleHandler given, called in /app/web/modules/contrib/audiofield/src/Plugin/AudioPlayer/WavesurferAudioPlayer.php on line 61 in Drupal\audiofield\Plugin\AudioPlayer\WavesurferAudioPlayer->__construct() (line 43 of modules/contrib/audiofield/src/Plugin/AudioPlayer/WavesurferAudioPlayer.php).
Proposed resolution
Use \Drupal\Core\Extension\ModuleHandlerInterface instead.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3307945-2.patch | 1.93 KB | uditrawat |
Comments
Comment #2
uditrawatAdded patch for version 8.x-1.11
Comment #3
uditrawatAdded patch for 8.x-1.x-dev
Comment #4
uditrawatComment #5
daniel.moberly commentedCommitted. Thanks!