Skip to content

Object shapes in assertions do not work anymore #8981

@boesing

Description

@boesing

Hey there,

I've recently upgrade psalm to v5 in another project where we use object shapes to determine properties from json_decode objects. So we have an assertion method which then should tell psalm that there are properties with specific types.

This does not properly seem to work, at least in my example here:
https://psalm.dev/r/eb1bed0bf9

Is that something which is related to psalm v5 or am I oversee something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions