Closed
Description
Symfony version(s) affected: v5.2.0
Description
PhpUnitBridge's CoverageListenerTrait is incompatible with PHPUnit 9.5, probably due to missing/inaccessible getAnnotations()
method.
How to reproduce
Example of a build with the error:
PHPUnit 9.5.0 by Sebastian Bergmann and contributors.
Runtime: PHP 7.4.13
Configuration: /home/runner/work/PHP-CS-Fixer/PHP-CS-Fixer/phpunit.xml.dist
Warning: Your XML configuration validates against a deprecated schema.
Suggestion: Migrate your XML configuration using "--migrate-configuration"!
Testing
Call to undefined method PhpCsFixer\Tests\AbstractFixerTest::getAnnotations()
Error: Process completed with exit code 2.
Workaround
Use PHPUnit 9.4.