1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 02:47:02 +01:00
psalm/docs/running_psalm/issues/TaintedCallable.md
2020-11-19 19:01:19 -05:00

20 lines
307 B
Markdown

# TaintedCallable
Emitted when tainted text is used in an aribtary function call.
This can lead to dangerous situations, like running arbitrary functions.
```php
<?php
$name = $_GET["name"];
evalCode($name);
function evalCode(string $name) {
if (is_callable($name)) {
$name();
}
}
```