diff options
author | Côme Chilliet <come.chilliet@nextcloud.com> | 2024-01-29 17:11:54 +0100 |
---|---|---|
committer | Côme Chilliet <91878298+come-nc@users.noreply.github.com> | 2024-01-30 10:57:15 +0100 |
commit | 8bcc2d352e3ed6a5f08b75991ab8f6fd53734f9f (patch) | |
tree | d455f9790694f0c4500e945db78e32294077e70e /apps/twofactor_backupcodes | |
parent | 063c051cdcfbaf1f623337f6f1239438b35d094c (diff) | |
download | nextcloud-server-8bcc2d352e3ed6a5f08b75991ab8f6fd53734f9f.tar.gz nextcloud-server-8bcc2d352e3ed6a5f08b75991ab8f6fd53734f9f.zip |
chore: Fix missing template parameter for IEventListener
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Diffstat (limited to 'apps/twofactor_backupcodes')
6 files changed, 6 insertions, 0 deletions
diff --git a/apps/twofactor_backupcodes/lib/Listener/ActivityPublisher.php b/apps/twofactor_backupcodes/lib/Listener/ActivityPublisher.php index dd1fd391b68..29b0da3cb0b 100644 --- a/apps/twofactor_backupcodes/lib/Listener/ActivityPublisher.php +++ b/apps/twofactor_backupcodes/lib/Listener/ActivityPublisher.php @@ -32,6 +32,7 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; use Psr\Log\LoggerInterface; +/** @template-implements IEventListener<CodesGenerated> */ class ActivityPublisher implements IEventListener { public function __construct( private IManager $activityManager, diff --git a/apps/twofactor_backupcodes/lib/Listener/ClearNotifications.php b/apps/twofactor_backupcodes/lib/Listener/ClearNotifications.php index 960f435a4fd..c6e12103bc0 100644 --- a/apps/twofactor_backupcodes/lib/Listener/ClearNotifications.php +++ b/apps/twofactor_backupcodes/lib/Listener/ClearNotifications.php @@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; use OCP\Notification\IManager; +/** @template-implements IEventListener<CodesGenerated> */ class ClearNotifications implements IEventListener { /** @var IManager */ diff --git a/apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php b/apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php index 77d6a15a722..7dbfbbc0b5d 100644 --- a/apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php +++ b/apps/twofactor_backupcodes/lib/Listener/ProviderDisabled.php @@ -33,6 +33,7 @@ use OCP\BackgroundJob\IJobList; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; +/** @template-implements IEventListener<RegistryEvent> */ class ProviderDisabled implements IEventListener { /** @var IRegistry */ diff --git a/apps/twofactor_backupcodes/lib/Listener/ProviderEnabled.php b/apps/twofactor_backupcodes/lib/Listener/ProviderEnabled.php index 4645b793630..f76c34669b2 100644 --- a/apps/twofactor_backupcodes/lib/Listener/ProviderEnabled.php +++ b/apps/twofactor_backupcodes/lib/Listener/ProviderEnabled.php @@ -33,6 +33,7 @@ use OCP\BackgroundJob\IJobList; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; +/** @template-implements IEventListener<RegistryEvent> */ class ProviderEnabled implements IEventListener { /** @var IRegistry */ diff --git a/apps/twofactor_backupcodes/lib/Listener/RegistryUpdater.php b/apps/twofactor_backupcodes/lib/Listener/RegistryUpdater.php index d47430095c9..d8cbb4974bd 100644 --- a/apps/twofactor_backupcodes/lib/Listener/RegistryUpdater.php +++ b/apps/twofactor_backupcodes/lib/Listener/RegistryUpdater.php @@ -31,6 +31,7 @@ use OCP\Authentication\TwoFactorAuth\IRegistry; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; +/** @template-implements IEventListener<CodesGenerated> */ class RegistryUpdater implements IEventListener { /** @var IRegistry */ diff --git a/apps/twofactor_backupcodes/lib/Listener/UserDeleted.php b/apps/twofactor_backupcodes/lib/Listener/UserDeleted.php index f488e48695a..d23ec3031df 100644 --- a/apps/twofactor_backupcodes/lib/Listener/UserDeleted.php +++ b/apps/twofactor_backupcodes/lib/Listener/UserDeleted.php @@ -30,6 +30,7 @@ use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; use OCP\User\Events\UserDeletedEvent; +/** @template-implements IEventListener<UserDeletedEvent> */ class UserDeleted implements IEventListener { /** @var BackupCodeMapper */ |