Revert "Fix comparison of PHP versions"
This reverts commit bedd9acf78
.
This commit is contained in:
parent
b527ffc4c9
commit
fbe893016f
|
@ -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,
|
||||
'<='
|
||||
|
|
Loading…
Reference in New Issue