Skip to content

Chained nullsafe method call wrongly induces caller's type #5868

@janedbal

Description

@janedbal

Bug report

See snippet, found while upgrading from 0.12.99 to 1.0.0

Code snippet that reproduces the problem

https://phpstan.org/r/208a06db-9004-4c14-96c1-7f4ad80493da

Expected output

No error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions