Back to Psalm

TaintedSystemSecret

docs/running_psalm/issues/TaintedSystemSecret.md

6.16.1272 B
Original Source

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