phpstan Command Examples

A PHP static analysis tool to discover bugs in code. More information: https://github.com/phpstan/phpstan.

phpstan analyse {{path/to/directory1 path/to/directory2 ...}}

phpstan analyse {{path/to/directory}} --configuration {{path/to/config}}

phpstan analyse {{path/to/directory}} --level {{level}}

phpstan analyse {{path/to/directory}} --autoload-file {{path/to/autoload_file}}

phpstan analyse {{path/to/directory}} --memory-limit {{memory_limit}}

phpstan analyse --help