SanderRonde / phpstan-vscode

PHPStan plugin for VSCode
https://marketplace.visualstudio.com/items?itemName=SanderRonde.phpstan-vscode
MIT License
40 stars 9 forks source link

Provide usage example for the config key "phpstan.paths" #23

Closed joshsedl closed 1 year ago

joshsedl commented 1 year ago

Currently, there is no proper usage example of the config key "phpstan.paths".

I expected it to be similar to the "paths" phpstan.neon parameter, where paths can be given as an array. But since the default for "phpstan.paths" is an empty json object, I am unsure how to properly use it.

SanderRonde commented 1 year ago

Added some usage examples (in both the extension settings and README). It's actually not a set of paths that should be checked, instead it's a path mapping (see explanation in README).

joshsedl commented 1 year ago

Thanks a lot! What a quick reply! Awesome 💯