diff --git a/src/LocalData/LocalDataEventDispatcher.php b/src/LocalData/LocalDataEventDispatcher.php index 90085e4696e90dc08b66b64cc0acdfc2812d0350..fb174d30d6b7afa4bc0595413c29f0c9ba65b7dc 100644 --- a/src/LocalData/LocalDataEventDispatcher.php +++ b/src/LocalData/LocalDataEventDispatcher.php @@ -79,7 +79,7 @@ class LocalDataEventDispatcher /** * Dispatches the given event. */ - public function dispatch(Event $event, string $eventName): void + public function dispatch(Event $event, string $eventName = null): void { if ($event instanceof LocalDataPreEvent) { $event->setQueryParameters($this->queryParameters);