PHP TypeLang Help

Phan Tags

The Phan Tags are the annotations that belong to Phan's own vocabulary, written under its @phan-* vendor prefix. Phan uses the prefix much as Psalm and PHPStan do: to add analyzer-specific capabilities — line-scoped suppression, real vs. documented return types, magic-member policing — and to offer a Phan-scoped override of a tag that also exists in the shared convention.

A prefixed tag that mirrors one documented elsewhere — @phan-param beside @param, @phan-return beside @return — means the same thing as the plain spelling; the prefix only marks it as the one Phan should trust.

What This Group Covers

For the authoritative definitions, see Phan's annotating-your-source-code guide.

12 July 2026