TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given

Created on 25 January 2024, 11 months ago
Updated 15 February 2024, 10 months ago

Problem/Motivation

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

Proposed resolution

$event_dispatcher->dispatch($event, StripeCreateSubscribeSessionEvent::EVENT_NAME);

๐Ÿ› Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

๐Ÿ‡ณ๐Ÿ‡ฑNetherlands rsingh27

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