PHP TypeLang Help

PHPStan Tags

The PHPStan Tags are the annotations that belong to PHPStan's own vocabulary, written under its @phpstan-* vendor prefix. As with Psalm, the prefix serves two roles: it introduces PHPStan-specific features — assertions, its @phpstan-ignore family of diagnostic suppressors, type aliases — and it provides a PHPStan-scoped override of a tag that also exists unprefixed, letting a project refine a type for PHPStan only.

A prefixed tag that mirrors one documented elsewhere — @phpstan-param beside @param, @phpstan-return beside @return — carries the same meaning as the plain spelling; the prefix simply tells PHPStan to prefer this line when it and another tool disagree.

What This Group Covers

For the authoritative definitions, see PHPStan's PHPDoc reference.

12 July 2026