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:
authorRoeland Jago Douma <roeland@famdouma.nl>2022-10-09 22:41:18 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2022-10-09 22:41:18 +0300
commitc6e100ed327c4ef4779a270cfb3ca5a54d2c38cf (patch)
tree57a1e836c347a604fb56bed4064dcec341052187
parent00485eff56436dca388127c557712ab0b00666e7 (diff)
type closure to make psalm a bit happier
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
-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;