| Q |
A |
| PHPUnit version |
9.6.21 |
| PHP version |
8.4.1 |
| Installation Method |
PHAR |
Summary
Checking some old software for Php8.4 compatibility using 9.6.21 phar. This issue does not arise when I install phpunit 9.6.21 with composer and use it; it is only a problem when using the phar.
Current behavior
Many messages like the following, all pointing to Prophecy:
PHP Deprecated: Prophecy\Argument\Token\ExactValueToken::__construct(): Implicitly marking parameter $util as nullable is deprecated, the explicit nullable type must be used instead in phar://C:/git/excel - Copy/unitTests/phpunit-9.6.21.phar/phpspec-prophecy/Prophecy/Argument/Token/ExactValueToken.php on line 36
How to reproduce
php8.4 phpunit-9.6.21.phar
Expected behavior
No deprecation messages.
Summary
Checking some old software for Php8.4 compatibility using 9.6.21 phar. This issue does not arise when I install phpunit 9.6.21 with composer and use it; it is only a problem when using the phar.
Current behavior
Many messages like the following, all pointing to Prophecy:
How to reproduce
php8.4 phpunit-9.6.21.phar
Expected behavior
No deprecation messages.