php-language-server icon indicating copy to clipboard operation
php-language-server copied to clipboard

Feature Request: Possible to add static analysis for UnhandledMatchException

Open Polar8ear opened this issue 11 months ago • 1 comments

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?

Polar8ear avatar Apr 02 '24 04:04 Polar8ear

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

zobo avatar Apr 02 '24 06:04 zobo