diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2022-10-09 21:41:18 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2022-10-09 21:41:18 +0200 |
commit | c6e100ed327c4ef4779a270cfb3ca5a54d2c38cf (patch) | |
tree | 57a1e836c347a604fb56bed4064dcec341052187 /apps/files_sharing | |
parent | 00485eff56436dca388127c557712ab0b00666e7 (diff) | |
download | nextcloud-server-c6e100ed327c4ef4779a270cfb3ca5a54d2c38cf.tar.gz nextcloud-server-c6e100ed327c4ef4779a270cfb3ca5a54d2c38cf.zip |
type closure to make psalm a bit happier
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/Controller/ShareesAPIController.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |