psalm

Static analysis tool for finding errors in PHP code

brewmacoslinux
Try with needOr install directly
Source

About

PHP Static Analysis Tool

Commands

psalm

Examples

Analyze current PHP project for errors$ psalm
Analyze specific PHP file$ psalm src/MyClass.php
Run with strict type checking mode$ psalm --strict-types