You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPStan is checking whether all possible outcomes of a match expression are used. But for isset it's reporting an error despite true and false are used.
Code snippet that reproduces the problem
/// PHPStan: Match expression does not handle remaining value: bool
match (isset($foo)) {
true => 'a',
false => 'b',
};
PHPStan is checking whether all possible outcomes of a
match
expression are used. But forisset
it's reporting an error despitetrue
andfalse
are used.Code snippet that reproduces the problem
https://phpstan.org/r/4d740289-69d9-4071-825f-014bd4bdfecc
Expected output
The code is correct, as it has a branch for the
true
andfalse
value.The text was updated successfully, but these errors were encountered: