From 7c210ec2264a9cdaf863999050aa308483e94a0f Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 10 Nov 2023 17:30:44 +0100 Subject: [PATCH] psalm fix Signed-off-by: Robin Appelman --- lib/Listener/LoadAdditionalScriptsListener.php | 3 ++- tests/stub.php | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/Listener/LoadAdditionalScriptsListener.php b/lib/Listener/LoadAdditionalScriptsListener.php index c27531ab..f6388e28 100644 --- a/lib/Listener/LoadAdditionalScriptsListener.php +++ b/lib/Listener/LoadAdditionalScriptsListener.php @@ -26,11 +26,12 @@ namespace OCA\Guests\Listener; +use OCA\Files\Event\LoadAdditionalScriptsEvent; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventListener; /** - * @template-implements IEventListener + * @template-implements IEventListener */ class LoadAdditionalScriptsListener implements IEventListener { public function handle(Event $event): void { diff --git a/tests/stub.php b/tests/stub.php index 80449d48..9cc5a7aa 100644 --- a/tests/stub.php +++ b/tests/stub.php @@ -825,3 +825,7 @@ public function transfer(IUser $sourceUser, } } } + +namespace OCA\Files\Event { + class LoadAdditionalScriptsEvent extends \OCP\EventDispatcher\Event {} +}