Skip to content
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

param-closure-this should report an invalid type being used #10933

Open
stof opened this issue Apr 25, 2024 · 0 comments
Open

param-closure-this should report an invalid type being used #10933

stof opened this issue Apr 25, 2024 · 0 comments

Comments

@stof
Copy link
Contributor

stof commented Apr 25, 2024

Feature request

https://phpstan.org/r/da19090a-2963-481b-8a46-f472a9eba4bd should report an error about NonExistent being an invalid this type for the closure as it does not exist.
This should be similar to the way @param NonExistent $b reports an error about the invalid type.

Did PHPStan help you today? Did it make you happy in any way?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants