We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, the match expression produces variable might not be defined incorrectly.
match
variable might not be defined
Playground-1 Playground-2
no error.
The text was updated successfully, but these errors were encountered:
Yeah, this can be considered a bug, but you're using match like a switch :) This is the correct usage: https://phpstan.org/r/7cf7fdd3-ff74-4d52-a625-e1558600e80c
switch
Sorry, something went wrong.
No branches or pull requests
Bug report
Hi, the
match
expression producesvariable might not be defined
incorrectly.Code snippet that reproduces the problem
Playground-1
Playground-2
Expected output
no error.
Did PHPStan help you today? Did it make you happy in any way?
The text was updated successfully, but these errors were encountered: