php-language-server
php-language-server copied to clipboard
Feature Request: Possible to add static analysis for UnhandledMatchException
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?
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