PHP TypeLang Help

@psalm-trace

The @psalm-trace tag outputs the inferred type of the given variable, for debugging purposes.

"@psalm-trace" <Variable> [ <Description> ]

Parsing a @psalm-trace tag produces a PsalmTraceTag instance, carrying the traced $variable alongside the $name and optional $description every Tag already provides.

final class PsalmTraceTag extends VariableTag {}

See Psalm's supported annotations.

08 July 2026