1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 17:52:45 +01:00
psalm/docs/running_psalm/issues/TaintedSystemSecret.md

17 lines
273 B
Markdown
Raw Normal View History

# TaintedSystemSecret
Emitted when 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");
```