-
Notifications
You must be signed in to change notification settings - Fork 461
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
1.6.12 typehint issue with spy methods #1421
Comments
Hey @brettmc, Thanks for reporting this issue. I'm actively working on a patch on a local branch to fix this and other similar issues. I'll provide a link to the pull request once it's ready for review. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Mockery Version
1.6.12
PHP Version
PHP 8.3
Issue Description
After updating to mockery 1.6.12 today, both my IDE (phpstorm 2024.1.1) and psalm (5.24.0) started complaining about missing methods, which seems to only happen on mocks created via
Mockery::spy()
:It still works (as in, tests with these spies run and work as expected), but static analysis is not happy. We also use
psalm/plugin-mockery
(latest version).Steps to Reproduce
Expected Behavior
No response
Actual Behavior
No response
Exception or Error
No response
Additional Information
The phpunit tests extend
MockeryTestCase
.I also tried using
mock()->shouldIgnoreMissing()
which had the same issue.The text was updated successfully, but these errors were encountered: