@psalm-check-type
The @psalm-check-type tag asserts, for debugging purposes, that a variable resolves to a given type. It is defined by the static analyzer Psalm.
"@psalm-check-type" <Variable> "=" <Type>
Parsing a @psalm-check-type tag produces a PsalmCheckTypeTag instance, carrying the checked $variable and its expected $type alongside the $name every Tag already provides.
final class PsalmCheckTypeTag extends CheckTypeTag {}
It shares the CheckTypeTag base with the stricter @psalm-check-type-exact, which demands an exact type match.
See Psalm's supported annotations.
08 July 2026