Skip to content

is_string() narrowing is lost in 2.1.49 for big unions #14484

@janedbal

Description

@janedbal

Bug report

Worked correctly in 2.1.48.

Code snippet that reproduces the problem

https://phpstan.org/r/d31cb30d-6b4e-4fd9-ae81-0a800488239c

Expected output

No error

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions