From c6e3ad347d6fc52054c73b18b0a2761f7428a3da Mon Sep 17 00:00:00 2001 From: jld3103 Date: Fri, 14 Apr 2023 09:00:33 +0200 Subject: [PATCH] Fix SymfonyAdapter dispatch method typing Signed-off-by: jld3103 --- lib/private/EventDispatcher/SymfonyAdapter.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/private/EventDispatcher/SymfonyAdapter.php b/lib/private/EventDispatcher/SymfonyAdapter.php index aa6fcbc1ad341..8289cbbc45592 100644 --- a/lib/private/EventDispatcher/SymfonyAdapter.php +++ b/lib/private/EventDispatcher/SymfonyAdapter.php @@ -77,11 +77,11 @@ private static function detectEventAndName($a, $b) { /** * Dispatches an event to all registered listeners. * - * @param string $eventName The name of the event to dispatch. The name of - * the event is the name of the method that is - * invoked on listeners. - * @param Event|null $event The event to pass to the event handlers/listeners - * If not supplied, an empty Event instance is created + * @param mixed $eventName The name of the event to dispatch. The name of + * the event is the name of the method that is + * invoked on listeners. + * @param mixed $event The event to pass to the event handlers/listeners + * If not supplied, an empty Event instance is created * * @return object the emitted event * @deprecated 20.0.0 @@ -125,7 +125,7 @@ public function dispatch($eventName, $event = null): object { * Adds an event listener that listens on the specified events. * * @param string $eventName The event to listen on - * @param callable $listener The listener + * @param callable|array $listener The listener * @param int $priority The higher this value, the earlier an event * listener will be triggered in the chain (defaults to 0) * @deprecated 20.0.0