Skip to content

Commit

Permalink
Adds documentation for the forbiddenFunctions config option
Browse files Browse the repository at this point in the history
  • Loading branch information
p810 committed Dec 1, 2022
1 parent b4aa951 commit 0232922
Showing 1 changed file with 10 additions and 0 deletions.
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

0 comments on commit 0232922

Please sign in to comment.