Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Generic type resolution issue with method chaining when static return type breaks global generic parameter #12680

@kayw-geek

Description

@kayw-geek

Bug report

The issues appear in PHPStan 2.x.

Code snippet that reproduces the problem

https://phpstan.org/r/427a4280-7c91-4286-a5b4-5199a8fd33f5

Expected output

Parsed generic values

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions