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
- php >= 7.1
- phpstan >= 0.11
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
- May need more memory when linting too many files
- Adapt to PhpStan 0.11, use
--error-format
instead of--errorFormat
- Auto find the local phpstan
- Fix phpstan stderr handler
- Add phpstan error handler
- Fix editor change hanler
- Support Windows
- Initial release of vscode-phpstan