1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-11 16:59:45 +01:00
psalm/docs/running_psalm/issues/TaintedSystemSecret.md
2021-01-29 11:46:13 +01:00

273 B
Raw Blame History

TaintedSystemSecret

Emitted when data marked as a system secret is detected somewhere it shouldnt be.

<?php

/**
 * @psalm-taint-source system_secret
 */
function getConfigValue(string $data) {
    return "$omePa$$word";
}

echo getConfigValue("secret");