From e20e18f45f5bb06cc82e34169317079bf99f5b58 Mon Sep 17 00:00:00 2001 From: Arthur Schiwon Date: Wed, 10 May 2023 19:06:29 +0200 Subject: [PATCH] fix: use interface instead of implementation as type hint MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Arthur Schiwon --- apps/dav/lib/SystemTag/SystemTagPlugin.php | 3 +-- 1 file changed, 1 insertion(+), 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); -- 2.39.5