A Vim plugin for PHPStan - https://github.com/phpstan/phpstan. It calls `phpstan` to do static analysis of your PHP code and displays the errors in Vim's quickfix list.
PHP Vim script
Latest commit 685cc48 Feb 4, 2017 @robertbasic robertbasic committed on GitHub Add authors section
Permalink
Failed to load latest commit information.
autoload First commit Feb 4, 2017
plugin First commit Feb 4, 2017
LICENSE
README.md Add authors section Feb 4, 2017
vim-phpstan-qf.png

README.md

vim-phpstan

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.

See :help quickfix for more on how to use the quickfix.

Usage

Call the 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:

vim phpstan quickfix screenshot

Installation

Using vim-plug:

Plug 'phpstan/vim-phpstan'

Configuration

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.

Assumptions

This plugin assumes that the phpstan executable is available in the $PATH.

Authors

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