Skip to content

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.

License

Notifications You must be signed in to change notification settings

Slamdunk/vim-php-static-analysis

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published

Languages

  • Vim Script 100.0%