mirror of
https://github.com/danog/psalm.git
synced 2024-12-15 02:47:02 +01:00
24 lines
442 B
Markdown
24 lines
442 B
Markdown
# ForbiddenCode
|
|
|
|
Emitted when Psalm encounters a var_dump, exec or similar expression that may make your code more vulnerable
|
|
|
|
```php
|
|
<?php
|
|
|
|
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>
|
|
```
|