diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-15 16:23:26 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-10-15 16:23:26 +0200 |
commit | e646d7d5a9ba8c8cf5c09bc0b67b66d7b162e52b (patch) | |
tree | 933402c9ecb6d27f3011f1659cdd8a7d784b2058 /lib/public/AppFramework/Bootstrap | |
parent | 87f8a09ac93d7742ca27e659aa2a31031747a87a (diff) | |
download | nextcloud-server-e646d7d5a9ba8c8cf5c09bc0b67b66d7b162e52b.tar.gz nextcloud-server-e646d7d5a9ba8c8cf5c09bc0b67b66d7b162e52b.zip |
Add psalm types for the event dispatcher
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/public/AppFramework/Bootstrap')
-rw-r--r-- | lib/public/AppFramework/Bootstrap/IRegistrationContext.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php index b164fda5e62..aaf5ef00bfa 100644 --- a/lib/public/AppFramework/Bootstrap/IRegistrationContext.php +++ b/lib/public/AppFramework/Bootstrap/IRegistrationContext.php @@ -113,10 +113,11 @@ interface IRegistrationContext { * * This is equivalent to calling IEventDispatcher::addServiceListener * + * @template T of \OCP\EventDispatcher\Event * @param string $event preferably the fully-qualified class name of the Event sub class to listen for - * @psalm-param string|class-string<\OCP\EventDispatcher\Event> $event preferably the fully-qualified class name of the Event sub class to listen for + * @psalm-param string|class-string<T> $event preferably the fully-qualified class name of the Event sub class to listen for * @param string $listener fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container - * @psalm-param class-string<\OCP\EventDispatcher\IEventListener> $listener fully qualified class name that can be built by the DI container + * @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $listener fully qualified class name that can be built by the DI container * @param int $priority * * @see IEventDispatcher::addServiceListener() |