Update cheatsheets

This commit is contained in:
ivuorinen
2025-03-16 00:20:08 +00:00
parent 367b1e4cb2
commit 07c7ca9e90
25 changed files with 227 additions and 85 deletions

View File

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