Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.02 KB

File metadata and controls

34 lines (20 loc) · 1.02 KB

vim-php-static-analysis

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.

Usage

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:

vim phpstan quickfix screenshot

Installation

Using vim-plug:

Plug 'slamdunk/vim-php-static-analysis'

Assumptions

This plugin assumes that vendor/bin/phpstan or vendor/bin/psalm executable is available in the $PATH.

Authors

Authors
Robert Basic https://github.com/robertbasic