Merge branch '3.4' into 4.4
* 3.4: [PhpUnitBridge] fix installing on PHP 8 (ter) [PhpUnitBridge] fix installing on PHP 8 (bis)
This commit is contained in:
commit
ef6a85b7ea
@ -197,8 +197,10 @@ if (!file_exists("$PHPUNIT_DIR/$PHPUNIT_VERSION_DIR/phpunit") || $configurationH
|
|||||||
$passthruOrFail("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
|
$passthruOrFail("$COMPOSER require --no-update phpunit/phpunit-mock-objects \"~3.1.0\"");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (preg_match('{\^(\d++\.\d++)[\d\.]*)$}', $info['requires']['php'], $phpVersion)) {
|
if (preg_match('{\^(\d++\.\d++)[\d\.]*$}', $info['requires']['php'], $phpVersion) && version_compare($phpVersion[1], PHP_VERSION, '<')) {
|
||||||
$passthruOrFail("$COMPOSER config platform.php \"$phpVersion[1].99\"");
|
$passthruOrFail("$COMPOSER config platform.php \"$phpVersion[1].99\"");
|
||||||
|
} else {
|
||||||
|
$passthruOrFail("$COMPOSER config --unset platform.php");
|
||||||
}
|
}
|
||||||
if (file_exists($path = $root.'/vendor/symfony/phpunit-bridge')) {
|
if (file_exists($path = $root.'/vendor/symfony/phpunit-bridge')) {
|
||||||
$passthruOrFail("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\"");
|
$passthruOrFail("$COMPOSER require --no-update symfony/phpunit-bridge \"*@dev\"");
|
||||||
|
Reference in New Issue
Block a user