1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-15 10:57:08 +01:00
psalm/docs/running_psalm/issues/TaintedSystemSecret.md
2020-11-17 16:03:50 -05:00

17 lines
273 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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