Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-10-10 14:15:12 +0300
committerGitHub <noreply@github.com>2022-10-10 14:15:12 +0300
commit936c3b629766161bd88924ff23942b31114d2694 (patch)
treed80617c225bcb6bbde46b8f8b03fe47f8acd1427
parenta02c8fe01dd954e9ec9771bf10470d1545b54bf0 (diff)
parentc6e100ed327c4ef4779a270cfb3ca5a54d2c38cf (diff)
Merge pull request #34489 from nextcloud/type_closure
type closure to make psalm a bit happier
-rw-r--r--apps/files_sharing/lib/Controller/ShareesAPIController.php2
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;