### Bug report With Bleeding Edge and level 5-7 there is a weird error message for the given code: > Parameter `#1` $foo of static method Bar::qux() expects Foo<string|null>, Foo<string|null> given. With level 8/9 the error disappears. ### Code snippet that reproduces the problem https://phpstan.org/r/4b2b137e-e272-466e-96ff-a954af066387 ### Expected output No error. ### Did PHPStan help you today? Did it make you happy in any way? _No response_
Activity
VincentLanglet commentedon Aug 2, 2025
Same issue than #9096 (comment)
Fix false positive argument.type for invariant generics with nullable…
phpstan-bot commentedon Sep 10, 2026
Closed via merging phpstan/phpstan-src#6392
github-actions commentedon Oct 12, 2026
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.