Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatibility between ParaTest 7.3.1 and PHPUnit ^10.5.38 on PHP 8.1 #920

Conversation

Willamind
Copy link

๐Ÿ› ๏ธ Environment

Q A
ParaTest 7.3.1
PHPUnit 10.5.38
PHP 8.1.30

๐Ÿ“„ Summary
Starting from PHPUnit 10.5.32, a new flag failOnPhpunitDeprecation was introduced (see PHPUnit Issue #5937).
This version of PHPUnit is available for PHP 8.1, but ParaTest only added support for this flag for PHP > 8.2.

As a result, the following error occurs when running ParaTest with PHPUnit 10.5.38 on PHP 8.1:
PHP Fatal error: Uncaught TypeError: PHPUnit\TextUI\ShellExitCodeCalculator::calculate(): Argument #8 ($failOnWarning) must be of type bool, PHPUnit\TestRunner\TestResult\TestResult given, called in .../vendor/brianium/paratest/src/WrapperRunner/WrapperRunner.php on line 296 and defined in .../vendor/phpunit/phpunit/src/TextUI/ShellExitCodeCalculator.php:25

If there is anything wrong with the way I structured this pr or if you need more information, please let me know, and Iโ€™ll be happy to update it.

@Slamdunk
Copy link
Member

Slamdunk commented Dec 16, 2024

Duplicate of #888

Please upgrade your PHP version with a one in Active Support

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants