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
Type checks in switch cases with return statements does not affect predicted type of a variable, but if statements do. In this example switch fills a similar role as if-elseif, but phpstan treats variable type checks and/or return statements inside cases differently:
Type checks in switch cases with return statements does not affect predicted type of a variable, but if statements do. In this example switch fills a similar role as if-elseif, but phpstan treats variable type checks and/or return statements inside cases differently:
https://phpstan.org/r/a876b5ee-8b62-405a-ac43-82bbcf9df446
The text was updated successfully, but these errors were encountered: