mirror of
https://github.com/danog/psalm.git
synced 2024-12-11 16:59:45 +01:00
db566c7c4d
Ref #4590
17 lines
273 B
Markdown
17 lines
273 B
Markdown
# TaintedSystemSecret
|
||
|
||
Emitted when data marked as a system secret is detected somewhere it shouldn’t be.
|
||
|
||
```php
|
||
<?php
|
||
|
||
/**
|
||
* @psalm-taint-source system_secret
|
||
*/
|
||
function getConfigValue(string $data) {
|
||
return "$omePa$$word";
|
||
}
|
||
|
||
echo getConfigValue("secret");
|
||
```
|