You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Generic type resolution issue with method chaining when static return type breaks global generic parameter #12680
Activity
kayw-geek commentedon Mar 17, 2025
The bug looked is seem be resolve in latest version.
ondrejmirtes commentedon Mar 17, 2025
This isn't really fixed. I believe all the lines should say
mixed: https://phpstan.org/r/c2b8d2e5-de05-4b8d-9d99-2e56e86edcb9phpstan-bot commentedon Mar 17, 2025
@kayw-geek After the latest push in 2.1.x, PHPStan now reports different result with your code snippet:
Full report
Dumped type: TValue (class Collection, parameter)Dumped type: TValue (class Collection, parameter)