diff options
author | Julius Härtl <jus@bitgrid.net> | 2023-01-26 22:49:48 +0100 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2023-01-27 11:10:56 +0100 |
commit | 81c2122ff8214332e2aeca5724b79c565b0979b3 (patch) | |
tree | 986f25f161b9ac9221cbe77a9780a220780969bd /lib/private/Collaboration | |
parent | 699e5fe7f68f895a3bc9c3c309d431312a9dfdb4 (diff) | |
download | nextcloud-server-81c2122ff8214332e2aeca5724b79c565b0979b3.tar.gz nextcloud-server-81c2122ff8214332e2aeca5724b79c565b0979b3.zip |
style: Fix php-cs and psalm
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private/Collaboration')
-rw-r--r-- | lib/private/Collaboration/Reference/File/FileReferenceEventListener.php | 5 | ||||
-rw-r--r-- | lib/private/Collaboration/Reference/RenderReferenceEventListener.php | 1 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/private/Collaboration/Reference/File/FileReferenceEventListener.php b/lib/private/Collaboration/Reference/File/FileReferenceEventListener.php index ae50f769665..cb53b496406 100644 --- a/lib/private/Collaboration/Reference/File/FileReferenceEventListener.php +++ b/lib/private/Collaboration/Reference/File/FileReferenceEventListener.php @@ -27,12 +27,13 @@ namespace OC\Collaboration\Reference\File; use OCP\Collaboration\Reference\IReferenceManager; use OCP\EventDispatcher\Event; use OCP\EventDispatcher\IEventDispatcher; +use OCP\EventDispatcher\IEventListener; use OCP\Files\Events\Node\NodeDeletedEvent; use OCP\Share\Events\ShareCreatedEvent; use OCP\Share\Events\ShareDeletedEvent; -/** @psalm-implements IEventDispatcher<Event|NodeDeletedEvent|ShareDeletedEvent|ShareCreatedEvent> */ -class FileReferenceEventListener implements \OCP\EventDispatcher\IEventListener { +/** @template-implements IEventListener<Event|NodeDeletedEvent|ShareDeletedEvent|ShareCreatedEvent> */ +class FileReferenceEventListener implements IEventListener { private IReferenceManager $manager; public function __construct(IReferenceManager $manager) { diff --git a/lib/private/Collaboration/Reference/RenderReferenceEventListener.php b/lib/private/Collaboration/Reference/RenderReferenceEventListener.php index f23aae92afa..dc2c5612666 100644 --- a/lib/private/Collaboration/Reference/RenderReferenceEventListener.php +++ b/lib/private/Collaboration/Reference/RenderReferenceEventListener.php @@ -32,6 +32,7 @@ use OCP\EventDispatcher\IEventDispatcher; use OCP\EventDispatcher\IEventListener; use OCP\IInitialStateService; +/** @template-implements IEventListener<Event|RenderReferenceEvent> */ class RenderReferenceEventListener implements IEventListener { private IReferenceManager $manager; private IInitialStateService $initialStateService; |