summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJoas Schilling <213943+nickvergessen@users.noreply.github.com>2021-01-15 15:18:25 +0100
committerGitHub <noreply@github.com>2021-01-15 15:18:25 +0100
commiteafd281800edb93f68dbf9bfa2e2be8a4f35cf02 (patch)
tree67897faa7481dd788c9fc927dca8bef11addd9ae /lib
parentd3ab26c4b0c5c64ac166efd0c577c1b2fec8feed (diff)
parentbedd9acf7874b836bef224989c2ce7f5e3b0a2fa (diff)
downloadnextcloud-server-eafd281800edb93f68dbf9bfa2e2be8a4f35cf02.tar.gz
nextcloud-server-eafd281800edb93f68dbf9bfa2e2be8a4f35cf02.zip
Merge pull request #25138 from gouttegd/fix25137
Fix comparison of PHP versions
Diffstat (limited to 'lib')
-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 4dc517879e8..70bf2a37d9d 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 === '' || $this->compareVersion->isCompatible(
+ $minPhpFulfilled = $minPhpVersion === '' || version_compare(
PHP_VERSION,
$minPhpVersion,
'>='
);
- $maxPhpFulfilled = $maxPhpVersion === '' || $this->compareVersion->isCompatible(
+ $maxPhpFulfilled = $maxPhpVersion === '' || version_compare(
PHP_VERSION,
$maxPhpVersion,
'<='