Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: Debug the configuration #8341

Open
wants to merge 1 commit into
base: 1.9.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 16 additions & 0 deletions website/src/user-guide/command-line-usage.md
Expand Up @@ -135,3 +135,19 @@ Instead of clearing the result cache, it just outputs the current PHPStan versio
### `--help`

Outputs a summary of available CLI options, but not as in much detail as this page.


Debug the configuration
-----------------------

To get an idea which config PHPStan effectly uses, you can use the `dump-parameters` command.
That way you get a dump of all settings, after config/include resolving has happened.


```bash
vendor/bin/phpstan dump-parameters [options]
```

### `--configuration|-c`

Specifies the path to a [configuration file](/config-reference). Relative paths are resolved based on the current working directory.