pest icon indicating copy to clipboard operation
pest copied to clipboard

[Bug]: $deprecationProvider must be of type PHPStan\Reflection\Deprecation\DeprecationProvider

Open mhdcodes opened this issue 10 months ago • 1 comments

What Happened

When I run the code coverage command I get the following error:

PHPStan\Analyser\NodeScopeResolver::__construct(): Argument #11 ($deprecationProvider) must be of type PHPStan\Reflection\Deprecation\DeprecationProvider, PHPStan\Reflection\AttributeReflectionFactory given, called in /var/www/vendor/pestphp/pest-plugin-type-coverage/src/PHPStanAnalyser.php on line 59

How to Reproduce

vendor/bin/pest --type-coverage

Sample Repository

No response

Pest Version

3.8.2

PHP Version

8.3.20

Operation System

Linux

Notes

Image

mhdcodes avatar Apr 20 '25 17:04 mhdcodes

This should be resolved in the latest version of pest/pest-plugin-type-coverage (v3.5.1).

@nunomaduro, we also have https://github.com/pestphp/pest-plugin-type-coverage/pull/47 to merge, which will resolve this issue happening again in future PHPStan updates. 👍🏻

owenvoke avatar Apr 22 '25 10:04 owenvoke