1
0
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:
Farhad Safarov 2020-08-13 16:21:13 +03:00 committed by GitHub
parent 209d17c868
commit 057d2cc678
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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