diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-28 08:54:24 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-28 08:54:24 +0100 |
commit | 469ba175ce77d23af868cbe5cbf14891e09075a2 (patch) | |
tree | fa3a9ac98e94ee620e9c19f62546ac6431c20868 /lib | |
parent | e4288529fa5864edf2a188fc22afa02fa96ca455 (diff) | |
download | nextcloud-server-469ba175ce77d23af868cbe5cbf14891e09075a2.tar.gz nextcloud-server-469ba175ce77d23af868cbe5cbf14891e09075a2.zip |
Type the event dispatcher listener callables with Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/EventDispatcher/IEventDispatcher.php | 2 |
1 files changed, 2 insertions, 0 deletions
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<T> $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<T> $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 */ |