Skip to content

Class constant with ternary expression sometimes interpreted as 'mixed'. #6633

@donquixote

Description

@donquixote

https://psalm.dev/r/53b0a79e31

A class constant filled from a ternary expression, where both branches are 'int', is seen as "mixed", when used in a numeric operator expression.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bughard problemsProblems without an obvious easy solution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions