Skip to content

Commit

Permalink
bug #37095 [PhpUnitBridge] Fix undefined index when output of "compos…
Browse files Browse the repository at this point in the history
…er 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 #37086
| License       | MIT
| Doc PR        | -

Commits
-------

d3f9b7f [PhpUnitBridge] Fix undefined index when output of "composer show" cannot be parsed
  • Loading branch information
nicolas-grekas committed Jun 4, 2020
2 parents edd0065 + d3f9b7f commit 400ab7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Symfony/Bridge/PhpUnit/bin/simple-phpunit
Expand Up @@ -106,6 +106,11 @@ if (!file_exists("$PHPUNIT_DIR/phpunit-$PHPUNIT_VERSION/phpunit") || md5_file(__
}
}

$info += [
'versions' => [],
'requires' => ['php' => '*'],
];

if (1 === \count($info['versions'])) {
$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.*\"");
} else {
Expand Down

0 comments on commit 400ab7c

Please sign in to comment.