ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given

Created on 3 November 2022, about 2 years ago
Updated 27 February 2023, almost 2 years ago

Problem/Motivation

TypeError: Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher::dispatch(): Argument #1 ($event) must be of type object, string given, called in /opt/drupal10/web/modules/contrib/smart_ip/src/SmartIp.php on line 57 in Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (line 88 of /opt/drupal10/web/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php)

Proposed resolution

Function is:

public function dispatch(object $event, ?string $eventName = NULL)
🐛 Bug report
Status

RTBC

Version

4.0

Component

Code

Created by

🇮🇹Italy viappidu

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024