@psalm-readonly-allow-private-mutation
The @psalm-readonly-allow-private-mutation tag allows a readonly property to be mutated from within the declaring class, relaxing the usual @psalm-readonly constraint for internal use only.
"@psalm-readonly-allow-private-mutation" [ <Description> ]
Parsing a @psalm-readonly-allow-private-mutation tag produces a ReadonlyAllowPrivateMutationTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.
final class ReadonlyAllowPrivateMutationTag extends FlagTag {}
The same ReadonlyAllowPrivateMutationTag is produced by @phpstan-readonly-allow-private-mutation, which restate the same concept for their respective tools.
Defined by Psalm.
08 July 2026