aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/App
diff options
context:
space:
mode:
authorLouis Chemineau <louis@chmn.me>2021-06-21 16:19:58 +0200
committerLouis Chemineau <louis@chmn.me>2021-06-21 16:31:24 +0200
commit3f6d3dc3079f5d46065321229b4365c05b3713ea (patch)
tree90ef8d8f8c777b119737abb8dd0ce185a634bc9a /lib/private/App
parentf0876a9e9dbbc754ae8b557f5eed2023abe2875d (diff)
downloadnextcloud-server-3f6d3dc3079f5d46065321229b4365c05b3713ea.tar.gz
nextcloud-server-3f6d3dc3079f5d46065321229b4365c05b3713ea.zip
Fix typing error in AppFetcher.php
Signed-off-by: Louis Chemineau <louis@chmn.me>
Diffstat (limited to 'lib/private/App')
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index 08634fd11f9..1605e5bd230 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -143,7 +143,9 @@ class AppFetcher extends Fetcher {
foreach ($releases as $release) {
$versions[] = $release['version'];
}
- usort($versions, 'version_compare');
+ usort($versions, function ($version1, $version2) {
+ return version_compare($version1, $version2);
+ });
$versions = array_reverse($versions);
if (isset($versions[0])) {
$highestVersion = $versions[0];