You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
Working with Symfony 4.4.8 and PHP 7.4.5, having thoses errors after upgrading symfony/phpunit-bridge to 5.1.0 :
Notice: Undefined index: versions in /var/www/html/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php on line 185
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php on line 185
sh: 1: composer: not found
How to reproduce
Install PHP 7.4.5
Install Symfony 4.4.8
Install phpunit-bridge 5.1.0
Run bin/phpunit
Possible Solution
Additional context
Works fine with only downgrading phpunit-bridge to 5.0.8
Composer version 1.10.5
The text was updated successfully, but these errors were encountered:
symfony/phpunit-bridge Version 3.4.41 has similar problems.
It also completely ignores the SYMFONY_PHPUNIT_VERSION environment variable as well as the automatically determined PHPUnit version from the PHP environment. It currently tries to install PHPUnit in version 9.1.x under all circumstances.
This is also reproducable with PHP versions prior to 7.4.
…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
Symfony version(s) affected: 4.4.8
Description
Working with
Symfony 4.4.8
andPHP 7.4.5
, having thoses errors after upgradingsymfony/phpunit-bridge
to5.1.0
:Notice: Undefined index: versions in /var/www/html/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php on line 185
Warning: count(): Parameter must be an array or an object that implements Countable in /var/www/html/vendor/symfony/phpunit-bridge/bin/simple-phpunit.php on line 185
sh: 1: composer: not found
How to reproduce
bin/phpunit
Possible Solution
Additional context
1.10.5
The text was updated successfully, but these errors were encountered: