Bug report
There's a @template V in the function and phpstan now creates weird int&V intersection types.
Code snippet that reproduces the problem
https://phpstan.org/r/90c5358a-48f2-4fdb-88bf-33322656ba21
Expected output
No errors.
Did PHPStan help you today? Did it make you happy in any way?
No response