1
0
Fork 0
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:
Amine LOUHICHI 2025-03-15 22:54:52 +01:00 committed by GitHub
parent e1e434d275
commit 4d6e686201
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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: