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:
commit
8e43460a1a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user