@psalm-consistent-constructor
The @psalm-consistent-constructor tag requires that all subclasses declare a constructor compatible with the parent's. It is defined by the static analyzer Psalm.
"@psalm-consistent-constructor" [ <Description> ]
Parsing a @psalm-consistent-constructor tag produces a ConsistentConstructorTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.
final class ConsistentConstructorTag extends FlagTag {}
The same ConsistentConstructorTag is produced by @phpstan-consistent-constructor, which restate the same concept for their respective tools.
See Psalm's supported annotations.
08 July 2026