A Vim plugin for PHPStan. It calls
phpstan to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
:help quickfix for more on how to use the quickfix.
PHPStanAnalyse command and pass the directories you want analysed as arguments:
:PHPStanAnalyse src test
And the quickfix list will be populated with something like this:
You can configure the level PHPStan uses. By default the level is 2.
let g:phpstan_analyse_level = 4 in your
.vimrc file to change the level to fit your needs.
This plugin assumes that the
phpstan executable is available in the