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: interface-typed receivers refuse, even under short-name collision #5
A receiver whose declared type is a PHP interface never produces a calls edge — even when a single unrelated class in the corpus shares the interface's short name (Laravel's Contracts convention makes this collision realistic). The extractor pre-scans interface declarations (following the existing C# interface pre-scan pattern) and the resolver refuses any receiver type matching a known interface name. Implementations are never guessed.
Acceptance criteria
Interface-typed property receiver: no calls edge to the interface's implementation
Interface + same-short-named unrelated class in the corpus: no edge into that class
Interface refusal is case-insensitive, matching PHP name semantics
Implemented in 4f17dd8. Orchestrator gate: full suite 3982/36 (+7 tests). Interface pre-scan at extraction (C# pattern), resolver refuses receiver types matching known interface names case-insensitively, across all three receiver entry points (typed property, typed param, inline-new). Two items handed to #7: (1) measured hole — interface refusal does not survive incremental rebuilds (interface names have no channel into the persisted resolution context; repro at /tmp/probe_php_iface_incremental.py); (2) changelog line — interface Foo + unrelated class Foo means calls through the class are also refused (conservative).
Activity
filipechagas commentedon Aug 5, 2026
Implemented in 4f17dd8. Orchestrator gate: full suite 3982/36 (+7 tests). Interface pre-scan at extraction (C# pattern), resolver refuses receiver types matching known interface names case-insensitively, across all three receiver entry points (typed property, typed param, inline-new). Two items handed to #7: (1) measured hole — interface refusal does not survive incremental rebuilds (interface names have no channel into the persisted resolution context; repro at /tmp/probe_php_iface_incremental.py); (2) changelog line — interface Foo + unrelated class Foo means calls through the class are also refused (conservative).