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.