mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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>
This commit is contained in:
parent
badee49b4b
commit
e20e18f45f
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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue