mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-27 13:53:34 +00:00
Update cheatsheets
This commit is contained in:
10
tldr/phpstan
10
tldr/phpstan
@@ -6,7 +6,7 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
# phpstan
|
||||
|
||||
> A PHP static analysis tool to discover bugs in code.
|
||||
> More information: <https://github.com/phpstan/phpstan>.
|
||||
> More information: <https://phpstan.org/user-guide/command-line-usage>.
|
||||
|
||||
- Analyze one or more directories:
|
||||
|
||||
@@ -14,15 +14,15 @@ source: https://github.com/tldr-pages/tldr.git
|
||||
|
||||
- Analyze a directory using a configuration file:
|
||||
|
||||
`phpstan analyse {{path/to/directory}} --configuration {{path/to/config}}`
|
||||
`phpstan analyse {{path/to/directory}} {{[-c|--configuration]}} {{path/to/config}}`
|
||||
|
||||
- Analyze using a specific rule level (0-7, higher is stricter):
|
||||
- Analyze using a specific rule level (0-10, higher is stricter):
|
||||
|
||||
`phpstan analyse {{path/to/directory}} --level {{level}}`
|
||||
`phpstan analyse {{path/to/directory}} {{[-l|--level]}} {{level}}`
|
||||
|
||||
- Specify an autoload file to load before analyzing:
|
||||
|
||||
`phpstan analyse {{path/to/directory}} --autoload-file {{path/to/autoload_file}}`
|
||||
`phpstan analyse {{path/to/directory}} {{[-a|--autoload-file]}} {{path/to/autoload_file}}`
|
||||
|
||||
- Specify a memory limit during analysis:
|
||||
|
||||
|
||||
Reference in New Issue
Block a user