Closed
Description
Q | A |
---|---|
Bug report? | yes |
Feature request? | no |
BC Break report? | no |
RFC? | no |
Symfony version | 4.0.* |
Since this commit of PHPUnit, PHPUnit has added return types to some methods.
This causes some compatibility issue when using PHPUnit version 7 or later and symfony/phpunit-bridge.
For example, the method Symfony\Bridge\PhpUnit\TextUI\Command::createRunner()
does not specify the return type.
Output of `SYMFONY_PHPUNIT_VERSION=7.0 php vendor/bin/simple-phpunit`
PHP Fatal error: Declaration of Symfony\Bridge\PhpUnit\TextUI\Command::createRunner() must be compatible with PHPUnit\TextUI\Command::createRunner(): PHPUnit\TextUI\TestRunner in <path>/vendor/symfony/phpunit-bridge/TextUI/Command.php on line 24