Skip to content

Commit

Permalink
Fix registerEventListener signature
Browse files Browse the repository at this point in the history
It seems now psalm correctly supports this.

Signed-off-by: Côme Chilliet <[email protected]>
  • Loading branch information
come-nc committed Oct 12, 2023
1 parent 05efbf1 commit 500374a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/public/AppFramework/Bootstrap/IRegistrationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function registerParameter(string $name, $value): void;
* @param string $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 The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0)
*
Expand Down

0 comments on commit 500374a

Please sign in to comment.