mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
Type the event dispatcher listener callables with Psalm
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
e4288529fa
commit
469ba175ce
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue