From: Roeland Jago Douma Date: Sun, 9 Oct 2022 19:41:18 +0000 (+0200) Subject: type closure to make psalm a bit happier X-Git-Tag: v26.0.0beta1~622^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c6e100ed327c4ef4779a270cfb3ca5a54d2c38cf;p=nextcloud-server.git type closure to make psalm a bit happier Signed-off-by: Roeland Jago Douma --- 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;