Skip to content

Tag reference

@psalm-ignore-variable-property

The @psalm-ignore-variable-property tag suppresses “undefined property” issues for properties accessed on the annotated variable, letting Psalm skip verification of a magic or dynamically resolved property access.

Grammar

"@psalm-ignore-variable-property" [ <Description> ]

Examples

Reading properties Psalm cannot see.
/** @psalm-ignore-variable-property */
echo $proxy->anyProperty;

Names by platform

psalm
@psalm-ignore-variable-property

Parsing a @psalm-ignore-variable-property tag produces a PsalmIgnoreVariablePropertyTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.

final class PsalmIgnoreVariablePropertyTag extends FlagTag {}