Skip to content

Commit eafd281

Browse files
Merge pull request #25138 from gouttegd/fix25137
Fix comparison of PHP versions
2 parents d3ab26c + bedd9ac commit eafd281

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/App/AppStore/Fetcher/AppFetcher.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,12 @@ protected function fetch($ETag, $content, $allowUnstable = false) {
113113
$phpVersion = $versionParser->getVersion($release['rawPhpVersionSpec']);
114114
$minPhpVersion = $phpVersion->getMinimumVersion();
115115
$maxPhpVersion = $phpVersion->getMaximumVersion();
116-
$minPhpFulfilled = $minPhpVersion === '' || $this->compareVersion->isCompatible(
116+
$minPhpFulfilled = $minPhpVersion === '' || version_compare(
117117
PHP_VERSION,
118118
$minPhpVersion,
119119
'>='
120120
);
121-
$maxPhpFulfilled = $maxPhpVersion === '' || $this->compareVersion->isCompatible(
121+
$maxPhpFulfilled = $maxPhpVersion === '' || version_compare(
122122
PHP_VERSION,
123123
$maxPhpVersion,
124124
'<='

0 commit comments

Comments
 (0)