mirror of
https://github.com/danog/psalm.git
synced 2024-12-03 18:17:55 +01:00
314 B
314 B
TaintedSystemSecret
Emitted when tainted input detection is turned on and data marked as a system secret is detected somewhere it shouldn’t be.
<?php
/**
* @psalm-taint-source system_secret
*/
function getConfigValue(string $data) {
return "$omePa$$word";
}
echo getConfigValue("secret");