]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix: use interface instead of implementation as type hint 38067/head
authorArthur Schiwon <blizzz@arthur-schiwon.de>
Wed, 10 May 2023 17:06:29 +0000 (19:06 +0200)
committerGitHub <noreply@github.com>
Wed, 10 May 2023 17:06:29 +0000 (19:06 +0200)
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
apps/dav/lib/SystemTag/SystemTagPlugin.php

index 8f0c4d0eedc33941c38874842bc2f960f630208a..3c834bf71eb137df53a7024a685537abfc03de9f 100644 (file)
@@ -25,7 +25,6 @@
  */
 namespace OCA\DAV\SystemTag;
 
-use OC\SystemTag\SystemTag;
 use OCA\DAV\Connector\Sabre\Directory;
 use OCA\DAV\Connector\Sabre\Node;
 use OCP\IGroupManager;
@@ -310,7 +309,7 @@ class SystemTagPlugin extends \Sabre\DAV\ServerPlugin {
                        }
 
                        $tags = $this->getTagsForFile($node->getId(), $user);
-                       usort($tags, function (SystemTag $tagA, SystemTag $tagB): int {
+                       usort($tags, function (ISystemTag $tagA, ISystemTag $tagB): int {
                                return Util::naturalSortCompare($tagA->getName(), $tagB->getName());
                        });
                        return new SystemTagList($tags, $this->tagManager, $user);