[PhpUnitBridge] fix installing on PHP 8 (bis)
This commit is contained in:
parent
606715b6ec
commit
c101259192
@ -89,7 +89,7 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
|
|||||||
}
|
}
|
||||||
|
|
||||||
$info = array();
|
$info = array();
|
||||||
foreach (explode("\n", `$COMPOSER info -a -n phpunit/phpunit "$PHPUNIT_VERSION.*"`) as $line) {
|
foreach (explode("\n", `$COMPOSER info --no-ansi -a -n phpunit/phpunit "$PHPUNIT_VERSION.*"`) as $line) {
|
||||||
$line = rtrim($line);
|
$line = rtrim($line);
|
||||||
|
|
||||||
if (!$info && preg_match('/^versions +: /', $line)) {
|
if (!$info && preg_match('/^versions +: /', $line)) {
|
||||||
|
Reference in New Issue
Block a user