-
Notifications
You must be signed in to change notification settings - Fork 48
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
[Feature Request] Report error when trying to configure a non existing method on MockObject. #71
Comments
This would need a @ondrejmirtes I'll be happy to write the rule, I think I can (thanks to TDD). I have already wrote another rule. But I have more difficulties to see what I should I write in the |
To also understand |
@ondrejmirtes stubs seems to not be used when I run tests. I get
instead of an IntersectionType. If I modify the phpDoc of the phpunit-vendor, I get an IntersectionType. Do you know how to fix this ? |
Can you open a draft PR so I can look at it more closely? |
Sure @ondrejmirtes : https://github.com/phpstan/phpstan-phpunit/pull/72/files I expect, |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I would be nice if phpstan could return an error for
$foo
is know asFoo&MockObject
so I think this would be possible.The text was updated successfully, but these errors were encountered: