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

Created on 25 January 2024, 10 months ago
Updated 30 January 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_api/src/Controller/StripeApiWebhook.php on line 85 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 89 of /app/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php).

Proposed resolution

$dispatcher->dispatch($webhook_event, 'stripe_api.webhook');

๐Ÿ› Bug report
Status

Needs review

Version

1.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