]> source.dussan.org Git - nextcloud-server.git/commitdiff
type closure to make psalm a bit happier 34489/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Sun, 9 Oct 2022 19:41:18 +0000 (21:41 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Sun, 9 Oct 2022 19:41:18 +0000 (21:41 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
apps/files_sharing/lib/Controller/ShareesAPIController.php

index 399cd4e00be2ccc46d9bd38a66def4d7b33e90cc..00e63ccb7b0197d77e3b23ca304d2e18d8ec7bbd 100644 (file)
@@ -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;