Thanks to visit codestin.com
Credit goes to github.com

Skip to content

PHP Archives (PHARs) of PHPUnit 8.5 and PHPUnit 9.6 bundle outdated versions of Prophecy #6071

@oleibman

Description

@oleibman
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.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions