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>
pull/38067/head
Arthur Schiwon 2023-05-10 19:06:29 +07:00 committed by GitHub
parent badee49b4b
commit e20e18f45f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

@ -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);