From c6e100ed327c4ef4779a270cfb3ca5a54d2c38cf Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Sun, 9 Oct 2022 21:41:18 +0200 Subject: [PATCH] type closure to make psalm a bit happier Signed-off-by: Roeland Jago Douma --- apps/files_sharing/lib/Controller/ShareesAPIController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/files_sharing/lib/Controller/ShareesAPIController.php b/apps/files_sharing/lib/Controller/ShareesAPIController.php index 399cd4e00be..00e63ccb7b0 100644 --- a/apps/files_sharing/lib/Controller/ShareesAPIController.php +++ b/apps/files_sharing/lib/Controller/ShareesAPIController.php @@ -273,7 +273,7 @@ class ShareesAPIController extends OCSController { } private function sortShareesByFrequency(array $sharees): array { - usort($sharees, function (array $s1, array $s2) { + usort($sharees, function (array $s1, array $s2): int { return $s2['count'] - $s1['count']; }); return $sharees; -- 2.39.5