You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
PHP: (new Service())->method() resolves as EXTRACTED with FQN corroboration #3
An inline instantiation call — (new Service())->method() or (new \\App\\Services\\Service())->method() — gets a calls edge to the service's method. Because the source names the exact class, the edge is EXTRACTED — but only when the source's qualified name corroborates the resolved node; otherwise it downgrades to INFERRED. new self() / new static() receivers are refused.
Extends the tracer's receiver mapping with the (new) receiver key plus the retained class name and qualified text.
Acceptance criteria
(new \\NS\\Service())->method() yields an EXTRACTED calls edge when the qualified name corroborates the resolved node; decoy gets no edge
Bare (new Service())->method() resolves; confidence per the corroboration rule
Non-corroborating qualified name downgrades to INFERRED (or refuses — per spec decision)
(new self())->m() and (new static())->m() yield no edge
Anonymous-class instantiation (new class {...})->m() yields no edge
Bare new Service() statements without an immediate call remain out of scope (unchanged)
Implemented in ae95261. Orchestrator gate: full suite 3957/36 (+10 tests). EXTRACTED only under PSR-4 path corroboration of the written namespace; bare/mismatched names stay INFERRED; new self()/static() and anonymous classes refused (anonymous-class AST shape probed on tree-sitter-php 0.24.1, closing design open-risk #3). All three upstream repro scenarios now produce the expected edges.
Activity
filipechagas commentedon Aug 5, 2026
Implemented in ae95261. Orchestrator gate: full suite 3957/36 (+10 tests). EXTRACTED only under PSR-4 path corroboration of the written namespace; bare/mismatched names stay INFERRED; new self()/static() and anonymous classes refused (anonymous-class AST shape probed on tree-sitter-php 0.24.1, closing design open-risk #3). All three upstream repro scenarios now produce the expected edges.