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']);
|
$phpVersion = $versionParser->getVersion($release['rawPhpVersionSpec']);
|
||||||
$minPhpVersion = $phpVersion->getMinimumVersion();
|
$minPhpVersion = $phpVersion->getMinimumVersion();
|
||||||
$maxPhpVersion = $phpVersion->getMaximumVersion();
|
$maxPhpVersion = $phpVersion->getMaximumVersion();
|
||||||
$minPhpFulfilled = $minPhpVersion === '' || version_compare(
|
$minPhpFulfilled = $minPhpVersion === '' || $this->compareVersion->isCompatible(
|
||||||
PHP_VERSION,
|
PHP_VERSION,
|
||||||
$minPhpVersion,
|
$minPhpVersion,
|
||||||
'>='
|
'>='
|
||||||
);
|
);
|
||||||
$maxPhpFulfilled = $maxPhpVersion === '' || version_compare(
|
$maxPhpFulfilled = $maxPhpVersion === '' || $this->compareVersion->isCompatible(
|
||||||
PHP_VERSION,
|
PHP_VERSION,
|
||||||
$maxPhpVersion,
|
$maxPhpVersion,
|
||||||
'<='
|
'<='
|
||||||
|
|
Loading…
Reference in New Issue