1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Merge pull request #8808 from p810/add-forbiddenFunctions-to-configuration-docs

Adds documentation for the `forbiddenFunctions` config option
This commit is contained in:
orklah 2022-12-01 21:24:36 +01:00 committed by GitHub
commit 8e43460a1a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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