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

Adds documentation for the forbiddenFunctions config option #8808

Merged
Merged
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
10 changes: 10 additions & 0 deletions docs/running_psalm/configuration.md
Expand Up @@ -537,6 +537,16 @@ The example above declares global variables as shown below
- `$_GET`
- `data` e.g. like `["id" => "123", "title" => "Nice"]`

#### <forbiddenFunctions>
Optional. Allows you to specify a list of functions that should emit the [`ForbiddenCode`](issues/ForbiddenCode.md) issue type.

```xml
<forbiddenFunctions>
<function name="var_dump" />
<function name="dd" />
</forbiddenFunctions>
```

## Accessing Psalm configuration in plugins

Plugins can access or modify the global configuration in plugins using
Expand Down