Options (3)
-c, --configurationbooleanAnalyze a directory using a configuration file
Example:
phpstan analyse {{path/to/directory}} {{[-c|--configuration]}} {{path/to/config}}-l, --levelbooleanAnalyze using a specific rule level (0-10, higher is stricter)
Example:
phpstan analyse {{path/to/directory}} {{[-l|--level]}} {{level}}-a, --autoload-filebooleanSpecify an autoload file to load before analyzing
Example:
phpstan analyse {{path/to/directory}} {{[-a|--autoload-file]}} {{path/to/autoload_file}}Examples (6)
Analyze one or more directories
phpstan analyse path/to/directory1 path/to/directory2 ...Analyze a directory using a configuration file
phpstan analyse path/to/directory [-c|--configuration] path/to/configAnalyze using a specific rule level (0-10, higher is stricter)
phpstan analyse path/to/directory [-l|--level] levelSpecify an autoload file to load before analyzing
phpstan analyse path/to/directory [-a|--autoload-file] path/to/autoload_fileSpecify a memory limit during analysis
phpstan analyse path/to/directory --memory-limit memory_limitDisplay available options for analysis
phpstan analyse --helpmade by @shridhargupta | data from tldr-pages