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.

You should use Psalm if you want to

Interested in how Psalm came to be? Read this explainer.