Skip to content

type narrowed too much after identical comparison #14281

@staabm

Description

@staabm

Bug report

wrongly narrowed types

Code snippet that reproduces the problem

https://phpstan.org/r/6b98b85a-e3cd-4aa0-8e95-131a4d5b8066

Expected output

no errors

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

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions