Bug report
This is just the bug that is behind phpstan/phpstan-webmozart-assert#33 as Ondrej mentioned there.
Fyi I know where to look and I think the fix should be trivial (at least I hope so), will try to open a PR for this soon.
Code snippet that reproduces the problem
https://phpstan.org/r/6485efa1-485c-4abb-8611-155ce3a05e74
Expected output
No errors.
Did PHPStan help you today? Did it make you happy in any way?
Just updated PHPStan in some projects, which resulted in 2 baseline error removals. yay :)