Skip to content

Commit 16b5230

Browse files
[PhpUnitBridge] Fix undefined index when output of "composer show" cannot be parsed
1 parent 519b25e commit 16b5230

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

bin/simple-phpunit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,11 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
106106
}
107107
}
108108

109+
$info += [
110+
'versions' => [],
111+
'requires' => ['php' => '*'],
112+
];
113+
109114
if (1 === \count($info['versions'])) {
110115
$passthruOrFail("$COMPOSER create-project --ignore-platform-reqs --no-install --prefer-dist --no-scripts --no-plugins --no-progress --ansi -s dev phpunit/phpunit phpunit-$PHPUNIT_VERSION \"$PHPUNIT_VERSION.*\"");
111116
} else {

0 commit comments

Comments
 (0)