We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When we have void anonymous function that has non-void returning anonymous function, phpstan is unable to declare that outer function "returns" void.
https://phpstan.org/r/51e621e4-3353-43ee-ad98-73099ad897cd
Anonymous function should have native return typehint "void".
Anonymous function sometimes return something but return statement at the end is missing.
The text was updated successfully, but these errors were encountered:
You're right, we shouldn't dive into nested closures.
Sorry, something went wrong.
Related problem: https://phpstan.org/r/bf7c1af2-4063-4ee0-8d04-3aa3a987754b
Expected: Anonymous function should have native return typehint "stdClass".
phpstan/phpstan-src@cb04a6e
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.
No branches or pull requests
Bug report
When we have void anonymous function that has non-void returning anonymous function, phpstan is unable to declare that outer function "returns" void.
Code snippet that reproduces the problem
https://phpstan.org/r/51e621e4-3353-43ee-ad98-73099ad897cd
Expected output
Anonymous function should have native return typehint "void".
Current output
Anonymous function sometimes return something but return statement at the end is missing.
The text was updated successfully, but these errors were encountered: