Skip to content

Psalm not inferring generator template parameters when using ternary #8564

@danog

Description

@danog

https://psalm.dev/r/35d889bd48

The error for the function with the ternary does not contain the actual template parameters for \Generator.

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