EventDispatcher::dispatch() argument order changed 9.1

Created on 13 July 2023, over 1 year ago
Updated 25 March 2024, 9 months ago

Problem/Motivation

When updating to Drupal 10 I get the following error:

TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /web/modules/contrib/paragraphs/src/Entity/Paragraph.php on line 558 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 89 of /web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php).

Steps to reproduce

Add a new paragraph to a content and check the browser console / report logs.

Proposed resolution

The EventDispatcher::dispatch() argument order changed so we need update it.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.16

Component

Code

Created by

πŸ‡§πŸ‡ͺBelgium gilmar.lima Brussels

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

Comments & Activities

Production build 0.71.5 2024