@phan-type
The @phan-type tag declares a local alias for a complex type.
"@phan-type" <Name> [ "=" ] <Type>
Parsing a @phan-type tag produces a TypeAliasTag instance, carrying the parsed $alias name and its $type alongside the $name every Tag already provides.
final class TypeAliasTag extends Tag {}
The same TypeAliasTag is produced by @psalm-type and @phpstan-type, which restate the same concept for their respective tools.
Defined by Phan, a static analyzer for PHP; no dedicated documentation page could be confirmed for this tag.
08 July 2026