Tag reference
@psalm-external-mutation-free
The @psalm-external-mutation-free tag declares that a method never
mutates state observable from outside the object. It is defined by
the static analyzer Psalm.
Grammar
"@psalm-external-mutation-free" [ <Description> ]Examples
/** * @psalm-external-mutation-free */public function count(): intNames by platform
- psalm
@psalm-external-mutation-free
Parsing a @psalm-external-mutation-free tag produces a PsalmExternalMutationFreeTag instance. Being a pure
marker, it adds nothing beyond the $name and optional $description
every Tag already carries.
final class PsalmExternalMutationFreeTag extends FlagTag {}