Tag reference
@psalm-consistent-templates
The @psalm-consistent-templates tag requires that all subclasses
use the same template parameters as the parent. It is defined by
the static analyzer Psalm.
Grammar
"@psalm-consistent-templates" [ <Description> ]Examples
/** * @template T * @psalm-consistent-templates */abstract class Collection {}Names by platform
- psalm
@psalm-consistent-templates
Parsing a @psalm-consistent-templates tag produces a PsalmConsistentTemplatesTag instance. Being a pure
marker, it adds nothing beyond the $name and optional $description
every Tag already carries.
final class PsalmConsistentTemplatesTag extends FlagTag {}