Bug report
The problem lies in better-reflection, see original report. They suggest it could be fixed in your fork. How do you feel about that?
Code snippet that reproduces the problem
https://phpstan.org/r/c9db7b66-d448-4163-ab07-db3be510275d
Expected output
No error.
Did PHPStan help you today? Did it make you happy in any way?
No response