diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-26 13:48:06 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-01-26 13:48:06 +0100 |
commit | 652bf9d363e891460ec5c341f05645169322ffc6 (patch) | |
tree | 6a3c7ea1afcf3c9def6572c179e377a39be98628 /lib | |
parent | 7a892a310d46e3d99418f2c3cd58c1897679ce9e (diff) | |
download | nextcloud-server-652bf9d363e891460ec5c341f05645169322ffc6.tar.gz nextcloud-server-652bf9d363e891460ec5c341f05645169322ffc6.zip |
Revert "Fix comparison of PHP versions"
This reverts commit bedd9acf7874b836bef224989c2ce7f5e3b0a2fa.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/App/AppStore/Fetcher/AppFetcher.php | 4 |
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, '<=' |