What is this?PHPStan is a static analysis tool for PHP. This extension integrates the output of PHPStan in VSCode allowing the developer to find errors quicker. InstallationPHPStan is required to use this extension. By default the plugin will search the global vendor folder and the workspace vendor folders.
The COMPOSER_HOME environment variable can be set to change where the plugin searches.
This path can be manually set using the PHPStan can be installed globally using:
or locally using:
CommandsPHPStan includes an explorer-context command called "PHPStan: Scan for Errors". This command works on both directories and files.
Configurationvscode-phpstan provides the following configuration properties and defaults:
|