Skip to content

Object property type changed when used in if condition #9767

@M393

Description

@M393

non-empty-mixed is added to the type of g, but it should be unchanged object|null
https://psalm.dev/r/286d439d27

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