diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2021-01-15 15:18:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-15 15:18:25 +0100 |
commit | eafd281800edb93f68dbf9bfa2e2be8a4f35cf02 (patch) | |
tree | 67897faa7481dd788c9fc927dca8bef11addd9ae /lib | |
parent | d3ab26c4b0c5c64ac166efd0c577c1b2fec8feed (diff) | |
parent | bedd9acf7874b836bef224989c2ce7f5e3b0a2fa (diff) | |
download | nextcloud-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.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 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, '<=' |