Skip to content

Incorrect type narrowing with dependent types #14411

Description

@claudepache

Bug report

Since 2.1.45. See code snippet.

Code snippet that reproduces the problem

https://phpstan.org/r/4b557d4b-6dac-4bdd-8758-b97ecd0a9ef0

Expected output

No error on line 22.

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

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions