final class TextHole
    implements TextSegment
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.

A gap where a value the analyzer could not resolve is spliced into a string.

Properties§

public Origin $origin
public TypeShape $type
public string|null $expression = null
public string|null $variable = null

Methods§

public function __construct(
    public Origin $origin,
    public TypeShape $type,
    public string|null $expression = null,
    public string|null $variable = null,
)

Parameters

$originOriginWhere the unresolved value comes from
$typeTypeShapeThe static type of the spliced value
$expressionstring|nullThe source expression, when it is short enough to quote
$variablestring|nullThe PHP variable read at the use site, when known
public function display(): string

The marker standing in for the unresolved value.

Returns

string
Test cases 2

Test cases 115§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 3
Other tests reaching this symbol 112

Relations§

Instantiated in 6
Constant reads 1
Type checks 8
Type declarations 2