From: Arthur Schiwon Date: Wed, 10 May 2023 17:06:29 +0000 (+0200) Subject: fix: use interface instead of implementation as type hint X-Git-Tag: v27.0.0beta2~19^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e20e18f45f5bb06cc82e34169317079bf99f5b58;p=nextcloud-server.git 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 --- 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);