mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 04:45:20 +01:00
308 B
308 B
TaintedCallable
Emitted when tainted text is used in an arbitrary function call.
This can lead to dangerous situations, like running arbitrary functions.
<?php
$name = $_GET["name"];
evalCode($name);
function evalCode(string $name) {
if (is_callable($name)) {
$name();
}
}