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/files_sharing/lib | |
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/files_sharing/lib')
5 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/Listener/LoadAdditionalListener.php b/apps/files_sharing/lib/Listener/LoadAdditionalListener.php index a15eade79fd..514c6ba0aa3 100644 --- a/apps/files_sharing/lib/Listener/LoadAdditionalListener.php +++ b/apps/files_sharing/lib/Listener/LoadAdditionalListener.php @@ -32,6 +32,7 @@ use OCP\EventDispatcher\IEventListener; use OCP\Share\IManager; use OCP\Util; +/** @template-implements IEventListener<LoadAdditionalScriptsEvent> */ class LoadAdditionalListener implements IEventListener { public function handle(Event $event): void { if (!($event instanceof LoadAdditionalScriptsEvent)) { diff --git a/apps/files_sharing/lib/Listener/LoadSidebarListener.php b/apps/files_sharing/lib/Listener/LoadSidebarListener.php index b88c3ccf0d8..8e12e551183 100644 --- a/apps/files_sharing/lib/Listener/LoadSidebarListener.php +++ b/apps/files_sharing/lib/Listener/LoadSidebarListener.php @@ -35,7 +35,7 @@ use OCP\Share\IManager; use OCP\Util; /** - * @template-implements IEventListener<Event> + * @template-implements IEventListener<LoadSidebar> */ class LoadSidebarListener implements IEventListener { diff --git a/apps/files_sharing/lib/Listener/ShareInteractionListener.php b/apps/files_sharing/lib/Listener/ShareInteractionListener.php index 9eb69de7e83..dd591141476 100644 --- a/apps/files_sharing/lib/Listener/ShareInteractionListener.php +++ b/apps/files_sharing/lib/Listener/ShareInteractionListener.php @@ -36,6 +36,7 @@ use OCP\Share\IShare; use Psr\Log\LoggerInterface; use function in_array; +/** @template-implements IEventListener<ContactInteractedWithEvent> */ class ShareInteractionListener implements IEventListener { private const SUPPORTED_SHARE_TYPES = [ IShare::TYPE_USER, diff --git a/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php b/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php index 1f3898b3dcb..e3273e48516 100644 --- a/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php +++ b/apps/files_sharing/lib/Listener/UserAddedToGroupListener.php @@ -33,6 +33,7 @@ use OCP\IConfig; use OCP\Share\IManager; use OCP\Share\IShare; +/** @template-implements IEventListener<UserAddedEvent> */ class UserAddedToGroupListener implements IEventListener { /** @var IManager */ diff --git a/apps/files_sharing/lib/Listener/UserShareAcceptanceListener.php b/apps/files_sharing/lib/Listener/UserShareAcceptanceListener.php index 160a806f8ac..8de9f0ae267 100644 --- a/apps/files_sharing/lib/Listener/UserShareAcceptanceListener.php +++ b/apps/files_sharing/lib/Listener/UserShareAcceptanceListener.php @@ -36,6 +36,7 @@ use OCP\Share\Events\ShareCreatedEvent; use OCP\Share\IManager; use OCP\Share\IShare; +/** @template-implements IEventListener<ShareCreatedEvent> */ class UserShareAcceptanceListener implements IEventListener { /** @var IConfig */ |