Skip to content
New issue

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

Feature Request: Possible to add static analysis for UnhandledMatchException #77

Open
Polar8ear opened this issue Apr 2, 2024 · 1 comment

Comments

@Polar8ear
Copy link

As mentioned above, since php introduced enums and match expression
It will produce a UnhandledMatchException when match expression does not include all enum values. Is it possible to add static analysis on top of this to prevent the runtime error from happening?

@zobo
Copy link
Owner

zobo commented Apr 2, 2024

I will look at it when I can, but lately I can spend very little time in this extension. I suggest you also have a look at Phpactor (vscode https://marketplace.visualstudio.com/items?itemName=phpactor.vscode-phpactor)

I'll leave this open and I'll take a look when possible

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants