@immutable
The @immutable tag declares a class as immutable, meaning none of its state can change after construction. Real enforcement exists independently in Psalm (@psalm-immutable), PHPStan (@phpstan-immutable) and Phan (@phan-immutable).
"@immutable" [ <Description> ]
Parsing an @immutable tag produces an ImmutableTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.
final class ImmutableTag extends FlagTag {}
07 July 2026