A Vim plugin for PHPStan and Psalm.
It calls phpstan
or psalm
to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
See :help quickfix
for more on how to use the quickfix.
Call the PHPStanAnalyse
or Psalm
command and pass the directories you want analysed as arguments:
:PHPStanAnalyse src test
And the quickfix list will be populated with something like this:
Using vim-plug:
Plug 'slamdunk/vim-php-static-analysis'
This plugin assumes that vendor/bin/phpstan
or vendor/bin/psalm
executable is available in the $PATH
.
Authors | |
---|---|
Robert Basic | https://github.com/robertbasic |