Psalm - a static analysis tool for PHP
"Psalm is a static analysis tool that’s designed to improve large PHP codebases by identifying both obvious and hard-to-spot bugs.
Psalm comes with a fixer that allows you to improve your code automatically, too."