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

Conservative alias dependencies for calls that may mutate an object.

Methods§

public function __construct(list<ParsedFile> $files = [])

Indexes possible file-scope aliases; function scopes are indexed on demand.

Parameters

$fileslist<ParsedFile>
Calls 3
public function writes(Node $node): array<string, true>

Parameters

$nodeNode

Returns

array<string, true> Names whose objects a call may change.
Test cases 3
Calls 10
public function owner(Node $node): Node

The lexical body in which alias assignments are relevant.

Parameters

$nodeNode

Returns

Node
Test cases 1
Called from 1
Calls 1
  • method-call Node::getAttribute() line 106
public function assignments(Node $node, bool $root = false): list<Assign|AssignRef>

Private surface 1§

Implementation details, listed for orientation only.

private WeakMap<Node, array<string, array<string, true>>> $aliases

Test cases 23§

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

Dedicated tests 9
Other tests reaching this symbol 14

Relations§

Instantiated in 2
Method calls 1
Type declarations 1