mirror of
https://github.com/danog/psalm.git
synced 2024-11-26 20:34:47 +01:00
ForbiddenCode configure docs (#3989)
This commit is contained in:
parent
209d17c868
commit
057d2cc678
@ -7,3 +7,17 @@ Emitted when Psalm encounters a var_dump, exec or similar expression that may ma
|
||||
|
||||
var_dump("bah");
|
||||
```
|
||||
|
||||
This functions list can be extended by configuring `forbiddenFunctions` in `psalm.xml`
|
||||
|
||||
```xml
|
||||
<?xml version="1.0"?>
|
||||
<psalm>
|
||||
<!-- other configs -->
|
||||
|
||||
<forbiddenFunctions>
|
||||
<function name="dd"/>
|
||||
<function name="dump"/>
|
||||
</forbiddenFunctions>
|
||||
</psalm>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user