-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
PHPUnit 8.5 incompatibility with PHP 8.1 #4575
Copy link
Copy link
Closed
multitheftauto/mtasa-php-sdk
#88Labels
type/change-in-php-requires-adaptationA change in PHP requires a change so that existing PHPUnit functionality continues to workA change in PHP requires a change so that existing PHPUnit functionality continues to work
Metadata
Metadata
Assignees
Labels
type/change-in-php-requires-adaptationA change in PHP requires a change so that existing PHPUnit functionality continues to workA change in PHP requires a change so that existing PHPUnit functionality continues to work
Summary
phpunit/src/Util/Configuration.php
Line 443 in 957aaf3
If I understand the purpose of the code right, I think this would be a good way to fix the issue:
In this case the code that tries to abstract over the different arrays makes things more complicated than just directly assigning all of them, due to the special cases that need to be handled.