pest
pest copied to clipboard
[Bug]: $deprecationProvider must be of type PHPStan\Reflection\Deprecation\DeprecationProvider
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
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. 👍🏻