Skip to content

Commit

Permalink
Merge pull request #8808 from p810/add-forbiddenFunctions-to-configur…
Browse files Browse the repository at this point in the history
…ation-docs

Adds documentation for the `forbiddenFunctions` config option
  • Loading branch information
orklah authored Dec 1, 2022
2 parents 433e272 + 0232922 commit 8e43460
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions docs/running_psalm/configuration.md
Original file line number Diff line number Diff line change
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 8e43460

Please sign in to comment.