diff --git a/lib/Listener/AnalyticsDatasourceListener.php b/lib/Listener/AnalyticsDatasourceListener.php index 28d1723..a89c108 100644 --- a/lib/Listener/AnalyticsDatasourceListener.php +++ b/lib/Listener/AnalyticsDatasourceListener.php @@ -31,6 +31,9 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; +/** + * @template-implements IEventListener + */ class AnalyticsDatasourceListener implements IEventListener { public function handle(Event $event): void { if (!($event instanceof DatasourceEvent)) { diff --git a/lib/Listener/UserCreatedEventListener.php b/lib/Listener/UserCreatedEventListener.php index 6b90b8d..46393b9 100644 --- a/lib/Listener/UserCreatedEventListener.php +++ b/lib/Listener/UserCreatedEventListener.php @@ -33,6 +33,9 @@ use OCP\User\Events\UserCreatedEvent; use Psr\Log\LoggerInterface; +/** + * @template-implements IEventListener + */ class UserCreatedEventListener implements IEventListener { public function __construct( private IGroupManager $groupManager, diff --git a/tests/psalm-baseline.xml b/tests/psalm-baseline.xml index 4d624ea..07d720f 100644 --- a/tests/psalm-baseline.xml +++ b/tests/psalm-baseline.xml @@ -1,6 +1,9 @@ + + AnalyticsDatasourceListener::class + DatasourceEvent PublicShareTemplateProvider @@ -63,12 +66,18 @@ - + IEventListener - + + + $event + DatasourceEvent + + AnalyticsDatasourceListener +