PHP TypeLang Help

@psalm-yield

The @psalm-yield tag documents the type yielded by a Generator. It is defined by the static analyzer Psalm.

"@psalm-yield" <Type> [ <Description> ]

Parsing a @psalm-yield tag produces a YieldTag instance, carrying the parsed $type alongside the $name and optional $description every Tag already provides.

final class YieldTag extends TypedTag {}

The same YieldTag is produced by @phpstan-yield, which restates the same concept for its tool.

See Psalm's supported annotations.

08 July 2026