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

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