Skip to content

Tag reference

@psalm-taint-specialize

The @psalm-taint-specialize tag tells Psalm to track tainted data separately per call site, rather than merging taint information from all callers together. It is part of Psalm’s taint-analysis annotations.

Grammar

"@psalm-taint-specialize" [ <Description> ]

Examples

Tracking the taint per call site.
/**
* @psalm-taint-specialize
*/
function identity(string $value): string

Names by platform

psalm
@psalm-taint-specialize

Parsing a @psalm-taint-specialize tag produces a PsalmTaintSpecializeTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.

final class PsalmTaintSpecializeTag extends FlagTag {}

See Psalm’s security analysis annotations.