Exhaustiveness checking of values (patterns) in conditionals (related to literal types) · Issue #2860 · phpstan/phpstan

Feature request Summary Sometimes you have a variable of which the value should be in a certain set of values, for example: <?php final class SomeEnum { public const ONE = 1; public const TWO = ...