mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 02:15:30 +02:00
phpstan: edit page (#15938)
This commit is contained in:
parent
e1e434d275
commit
4d6e686201
1 changed files with 5 additions and 5 deletions
|
@ -1,7 +1,7 @@
|
|||
# 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:
|
||||
|
||||
|
@ -9,15 +9,15 @@
|
|||
|
||||
- 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:
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue