A vscode extension for phpstan.
Github link: https://github.com/breeze2/vscode-phpstan
auto lint your php code, or use the command:
PhpStan: Lint this file
PhpStan: Lint this folder
composer global require phpstan/phpstan
For example:
This extension contributes the following settings:
phpstan.level
: rule levels 0-7, default maxphpstan.noProgress
: no progress output, default truephpstan.memoryLimit
: memory limit, default 512Mphpstan.configuration
: path of configurationphpstan.autoloadFile
: path of autoload file--error-format
instead of --errorFormat