1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-04 10:38:49 +01:00
psalm/docs/running_psalm/issues/TaintedSystemSecret.md

17 lines
314 B
Markdown
Raw Normal View History

# TaintedSystemSecret
Emitted when tainted input detection is turned on and data marked as a system secret is detected somewhere it shouldnt be.
```php
<?php
/**
* @psalm-taint-source system_secret
*/
function getConfigValue(string $data) {
return "$omePa$$word";
}
echo getConfigValue("secret");
```