Opt in to exhaustive enum handling (UnhandledMatchCondition) without match statements? #10059
-
Hello, if we have the following simplified code: https://psalm.dev/r/7f1e92b68e and in the future we add another value to the enum: https://psalm.dev/r/203dacfe6a
I'm imagining something like this: https://psalm.dev/r/030f9f52e5 Cheers |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I think you can do that already with |
Beta Was this translation helpful? Give feedback.
I think you can do that already with
@psalm-check-type
: https://psalm.dev/r/5ca4f398f1