[PhpUnitBridge] fix installing on PHP 8 (bis)

This commit is contained in:
Nicolas Grekas 2020-05-20 23:58:15 +02:00
parent 606715b6ec
commit c101259192
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
}
$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);
if (!$info && preg_match('/^versions +: /', $line)) {