@phpstan-consistent-constructor
The @phpstan-consistent-constructor tag requires that all subclasses declare a constructor compatible with the parent's, defined by PHPStan.
"@phpstan-consistent-constructor" [ <Description> ]
Parsing a @phpstan-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 @psalm-consistent-constructor, which restate the same concept for their respective tools.
Originates from PHPStan's own annotation vocabulary.
08 July 2026