Skip to content

Commit 400ab7c

Browse files
bug symfony#37095 [PhpUnitBridge] Fix undefined index when output of "composer show" cannot be parsed (nicolas-grekas)
This PR was merged into the 3.4 branch. Discussion ---------- [PhpUnitBridge] Fix undefined index when output of "composer show" cannot be parsed …nnot be parsed | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix symfony#37086 | License | MIT | Doc PR | - Commits ------- d3f9b7f [PhpUnitBridge] Fix undefined index when output of "composer show" cannot be parsed
2 parents edd0065 + d3f9b7f commit 400ab7c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Symfony/Bridge/PhpUnit/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)