-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Method expects()
on test doubles yields error with static analyzer
#6156
Comments
PHPUnit 12.0.9 no longer has a class named PHPStan 2.1.8 by itself does not report an error for the code you provided. It is only when the rules from the phpstan-phpunit extension are active that an error is reported. A quick search in the source of phpstan-phpunit shows that it contains the string @ondrejmirtes @staabm Is this comment sufficient or should I open a ticket for phpstan-phpunit? I am sorry to cause this trouble :-( |
I created phpstan/phpstan-phpunit#222 to track this. |
Summary
ref #6154
This piece of code works, but does not pass static analysis anymore.
phpstan report
Current behavior
Fail static analysis
How to reproduce
https://github.com/smpn2/phpunit-6156
Expected behavior
The text was updated successfully, but these errors were encountered: