can't close tasks in Drupal 11 with error: eventDispatcher must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given

Created on 27 September 2024, 4 months ago

Problem/Motivation

Trying to complete a task gives error:

TypeError: Drupal\burndown\Form\TaskCloseForm::__construct(): Argument #1 ($eventDispatcher) must be of type Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher, Symfony\Component\EventDispatcher\EventDispatcher given, called in /var/www/html/web/modules/contrib/burndown/src/Form/TaskCloseForm.php on line 42 in Drupal\burndown\Form\TaskCloseForm->__construct() (line 34 of /var/www/html/web/modules/contrib/burndown/src/Form/TaskCloseForm.php).

Steps to reproduce

Click close task icon on task

Proposed resolution

Change the type hint from ContainerAwareEventDispatcher to EventDispatcherInterface

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇷Argentina leofishman

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