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:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2021-01-26 15:48:06 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2021-01-26 15:48:06 +0300
commit652bf9d363e891460ec5c341f05645169322ffc6 (patch)
tree6a3c7ea1afcf3c9def6572c179e377a39be98628
parent7a892a310d46e3d99418f2c3cd58c1897679ce9e (diff)
Revert "Fix comparison of PHP versions"
This reverts commit bedd9acf7874b836bef224989c2ce7f5e3b0a2fa.
-rw-r--r--lib/private/App/AppStore/Fetcher/AppFetcher.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/App/AppStore/Fetcher/AppFetcher.php b/lib/private/App/AppStore/Fetcher/AppFetcher.php
index 70bf2a37d9d..4dc517879e8 100644
--- a/lib/private/App/AppStore/Fetcher/AppFetcher.php
+++ b/lib/private/App/AppStore/Fetcher/AppFetcher.php
@@ -113,12 +113,12 @@ class AppFetcher extends Fetcher {
$phpVersion = $versionParser->getVersion($release['rawPhpVersionSpec']);
$minPhpVersion = $phpVersion->getMinimumVersion();
$maxPhpVersion = $phpVersion->getMaximumVersion();
- $minPhpFulfilled = $minPhpVersion === '' || version_compare(
+ $minPhpFulfilled = $minPhpVersion === '' || $this->compareVersion->isCompatible(
PHP_VERSION,
$minPhpVersion,
'>='
);
- $maxPhpFulfilled = $maxPhpVersion === '' || version_compare(
+ $maxPhpFulfilled = $maxPhpVersion === '' || $this->compareVersion->isCompatible(
PHP_VERSION,
$maxPhpVersion,
'<='