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: typed locals and typed params resolve, with scope poisoning #4
Calls through typed locals ($svc = new Service(); $svc->method()) and natively typed method parameters (function handle(Service $svc)) get INFERRED calls edges. A per-method receiver layer feeds the resolver, and any name whose binding is not provably single-typed is poisoned so no edge is emitted: non-new reassignment, conflicting new types, closure and arrow-function parameters that shadow the name, foreach targets, list-destructuring elements. Anonymous-class subtrees are skipped when scanning method bodies.
Acceptance criteria
$svc = new Service(); $svc->method() yields an INFERRED edge; decoy gets no edge
Typed method parameter receiver yields an INFERRED edge
$svc = new A(); $svc = $other; $svc->m() yields no edge
$svc = new A(); $svc = new B(); $svc->m() yields no edge to either class
A closure/arrow-fn parameter shadowing an outer typed name: the call inside the closure yields no edge from the outer type
A foreach target shadowing an outer typed name yields no edge from the outer type
A new inside an anonymous class body does not bind names in the enclosing method
Implemented in a707b42. Orchestrator gate: full suite 3975/36 (+18 tests). Typed params and $var-new locals resolve INFERRED; poisoning covers non-new reassignment, conflicting new, augmented assignment, closure AND arrow-fn param shadowing (unconditional poison — stricter than the design snippet, per AC), foreach targets, list destructuring; anonymous-class subtrees skipped; chained receivers inert. Flagged for #7: qualified inline-new is EXTRACTED but qualified local-new stays INFERRED (each per its ticket AC) — to be named in changelog/PR.
Activity
filipechagas commentedon Aug 5, 2026
Implemented in a707b42. Orchestrator gate: full suite 3975/36 (+18 tests). Typed params and $var-new locals resolve INFERRED; poisoning covers non-new reassignment, conflicting new, augmented assignment, closure AND arrow-fn param shadowing (unconditional poison — stricter than the design snippet, per AC), foreach targets, list destructuring; anonymous-class subtrees skipped; chained receivers inert. Flagged for #7: qualified inline-new is EXTRACTED but qualified local-new stays INFERRED (each per its ticket AC) — to be named in changelog/PR.
fix(extractors): share the in-flight scan root via base, not graphify…