Skip to content

Commit cf811b9

Browse files
committed
Fix registerEventListener signature
It seems now psalm correctly supports this. Signed-off-by: Côme Chilliet <[email protected]>
1 parent e1ba954 commit cf811b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/public/AppFramework/Bootstrap/IRegistrationContext.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public function registerParameter(string $name, $value): void;
129129
* @param string $event preferably the fully-qualified class name of the Event sub class to listen for
130130
* @psalm-param string|class-string<T> $event preferably the fully-qualified class name of the Event sub class to listen for
131131
* @param string $listener fully qualified class name (or ::class notation) of a \OCP\EventDispatcher\IEventListener that can be built by the DI container
132-
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener> $listener fully qualified class name that can be built by the DI container
132+
* @psalm-param class-string<\OCP\EventDispatcher\IEventListener<T>> $listener fully qualified class name that can be built by the DI container
133133
* @param int $priority The higher this value, the earlier an event
134134
* listener will be triggered in the chain (defaults to 0)
135135
*

0 commit comments

Comments
 (0)