From 469ba175ce77d23af868cbe5cbf14891e09075a2 Mon Sep 17 00:00:00 2001 From: Christoph Wurst Date: Wed, 28 Oct 2020 08:54:24 +0100 Subject: Type the event dispatcher listener callables with Psalm Signed-off-by: Christoph Wurst --- lib/public/EventDispatcher/IEventDispatcher.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib') diff --git a/lib/public/EventDispatcher/IEventDispatcher.php b/lib/public/EventDispatcher/IEventDispatcher.php index 095178f16e1..6f3adf159c0 100644 --- a/lib/public/EventDispatcher/IEventDispatcher.php +++ b/lib/public/EventDispatcher/IEventDispatcher.php @@ -39,6 +39,7 @@ interface IEventDispatcher { * @param string $eventName preferably the fully-qualified class name of the Event sub class * @psalm-param string|class-string $eventName preferably the fully-qualified class name of the Event sub class * @param callable $listener the object that is invoked when a matching event is dispatched + * @psalm-param callable(T):void $listener * @param int $priority * * @since 17.0.0 @@ -50,6 +51,7 @@ interface IEventDispatcher { * @param string $eventName preferably the fully-qualified class name of the Event sub class * @psalm-param string|class-string $eventName preferably the fully-qualified class name of the Event sub class * @param callable $listener the object that is invoked when a matching event is dispatched + * @psalm-param callable(T):void $listener * * @since 19.0.0 */ -- cgit v1.2.3