Skip to content

Tag reference

@phan-transient

The @phan-transient tag marks a property as excluded from serialization.

Grammar

"@phan-transient" [ <Description> ]

Examples

A property left out of serialization.
/**
* @phan-transient
*/
private ?Connection $connection = null;

Names by platform

phan
@phan-transient

Parsing a @phan-transient tag produces a PhanTransientTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.

final class PhanTransientTag extends FlagTag {}

Defined by Phan, a static analyzer for PHP; no dedicated documentation page could be confirmed for this tag.