Closed ghunti closed 2 months ago
Pin an older version of PHPUnit, or upgrade your PHP environment.
Duplicate of https://github.com/paratestphp/paratest/issues/889
@Slamdunk any chance of fixing the composer.json
on 7.3.x branch to make it only compatible with PHPUnit <= 10.3.31 ?
In our case, all pipelines were green, even though they had errors. I bet similar cases are happening or will happen to other people under the same conditions. Cheers :-)
I can re-add PHP 8.1 support for the 7.4.x
branch: that's a € 1.000 one-time sponsorship job.
Ping me if you're interested :+1:
Summary
PHPUnit 10.5.32 introduced a BC on the
src/TextUI/ShellExitCodeCalculator.php::calculate()
method. You backported this to 7.4.X branch with https://github.com/paratestphp/paratest/pull/888 The problem I face is:Current behavior
When running the tests I get the following error:
PHPUnit\TextUI\ShellExitCodeCalculator::calculate(): Argument #8 ($failOnWarning) must be of type bool, PHPUnit\TestRunner\TestResult\TestResult given, called in /root/build/infraspeak/web/web-core-api/vendor/brianium/paratest/src/WrapperRunner/WrapperRunner.php on line 296
How to reproduce: command, code and error stack trace
Simply run paratests
Expected behavior
ParaTests version 7.3.X should work with PHPUnit ^10.4.2 versions
Thank you for your patience and work