summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2023-05-10 19:06:29 +0200
committerGitHub <noreply@github.com>2023-05-10 19:06:29 +0200
commite20e18f45f5bb06cc82e34169317079bf99f5b58 (patch)
treeb395a9eefb175ac69d75168aa0d1bffa4fb526bf /apps/dav
parentbadee49b4b3e8d67c3b264326da7be2d0187846e (diff)
downloadnextcloud-server-e20e18f45f5bb06cc82e34169317079bf99f5b58.tar.gz
nextcloud-server-e20e18f45f5bb06cc82e34169317079bf99f5b58.zip
fix: use interface instead of implementation as type hint
Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/dav')
-rw-r--r--apps/dav/lib/SystemTag/SystemTagPlugin.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/dav/lib/SystemTag/SystemTagPlugin.php b/apps/dav/lib/SystemTag/SystemTagPlugin.php
index 8f0c4d0eedc..3c834bf71eb 100644
--- a/apps/dav/lib/SystemTag/SystemTagPlugin.php
+++ b/apps/dav/lib/SystemTag/SystemTagPlugin.php
@@ -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);