aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Listener
diff options
context:
space:
mode:
authorCôme Chilliet <come.chilliet@nextcloud.com>2024-01-29 17:11:54 +0100
committerCôme Chilliet <91878298+come-nc@users.noreply.github.com>2024-01-30 10:57:15 +0100
commit8bcc2d352e3ed6a5f08b75991ab8f6fd53734f9f (patch)
treed455f9790694f0c4500e945db78e32294077e70e /apps/files/lib/Listener
parent063c051cdcfbaf1f623337f6f1239438b35d094c (diff)
downloadnextcloud-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/lib/Listener')
-rw-r--r--apps/files/lib/Listener/LoadSidebarListener.php1
-rw-r--r--apps/files/lib/Listener/RenderReferenceEventListener.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/files/lib/Listener/LoadSidebarListener.php b/apps/files/lib/Listener/LoadSidebarListener.php
index 15f24279e0a..09d30eda44f 100644
--- a/apps/files/lib/Listener/LoadSidebarListener.php
+++ b/apps/files/lib/Listener/LoadSidebarListener.php
@@ -31,6 +31,7 @@ use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
use OCP\Util;
+/** @template-implements IEventListener<LoadSidebar> */
class LoadSidebarListener implements IEventListener {
public function handle(Event $event): void {
if (!($event instanceof LoadSidebar)) {
diff --git a/apps/files/lib/Listener/RenderReferenceEventListener.php b/apps/files/lib/Listener/RenderReferenceEventListener.php
index 121ff745065..f2cc8525a5a 100644
--- a/apps/files/lib/Listener/RenderReferenceEventListener.php
+++ b/apps/files/lib/Listener/RenderReferenceEventListener.php
@@ -28,6 +28,7 @@ use OCP\Collaboration\Reference\RenderReferenceEvent;
use OCP\EventDispatcher\Event;
use OCP\EventDispatcher\IEventListener;
+/** @template-implements IEventListener<RenderReferenceEvent> */
class RenderReferenceEventListener implements IEventListener {
public function handle(Event $event): void {
if (!$event instanceof RenderReferenceEvent) {