Bug report
Anonymous classes inside another anonymous class fails.
Code snippet that reproduces the problem
https://phpstan.org/r/67265928-bc80-4ed6-bed4-75f1554b2ce1
Expected output
No errors
Did PHPStan help you today? Did it make you happy in any way?
Yes :) it helps make every day better than previous day.