Skip to content

PHP member-call resolution release: changelog, docs, cache bump, final verification #7

Closed

Description

@filipechagas

Parent

Spec: #1 (upstream: Graphify-Labs#1682)

What to build

The release that ships PHP instance-call resolution is transparent about its limits and verified end-to-end. Changelog entry names both what now resolves and what is deliberately refused (interface-typed, union, untyped, docblock-only, chained receivers, trait and inherited methods); the how-it-works doc gains a note in its confidence section; the package version is bumped so the version-namespaced AST cache invalidates raw calls that predate the receiver fields.

Closes the open verification items from design review.

Acceptance criteria

  • Changelog entry lists resolved and refused categories, and the EXTRACTED→INFERRED delta on same-file typed-receiver calls
  • Docs confidence section notes PHP member-call resolution and its refusal policy
  • Version bumped; a manual incremental rebuild across the cache boundary produces receiver-aware edges
  • One-line AST probes done: anonymous classes, and self/static in type position, on the pinned grammar
  • Older accepted tree-sitter-php versions probed, or the version floor raised
  • Full test suite green
  • The live upstream-repro fixture shows all three scenario edges with the expected confidences

Blocked by

Activity

  1. added
    ready-for-agent
    on Aug 5, 2026
  2. filipechagas commented on Aug 5, 2026

    @filipechagas
    CollaboratorAuthor

    Independent code review of feat/php-member-calls-1682 (all changes since merge-base 4e7e6b1) against spec #1. Full suite confirmed green at 3988 passed / 36 skipped, and the release items this ticket owns — changelog, docs note, version bump — are correctly still open here, not gaps.

    One tracking gap worth capturing: three items were handed to this ticket in sibling closing comments, but none appear in this ticket's acceptance criteria. One of the three turned out not to be release work at all and has been split out; the other two are genuinely changelog items.

    1. Interface refusal does not survive incremental rebuilds → split out as PHP interface refusal does not survive incremental rebuilds, minting a wrong edge (user stories 10 + 19) #11. From PHP: interface-typed receivers refuse, even under short-name collision #5's closing comment: "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)". This is a behavioural defect against user stories 10 and 19, not a documentation task — it mints a wrong edge rather than omitting one — so it is now tracked as PHP interface refusal does not survive incremental rebuilds, minting a wrong edge (user stories 10 + 19) #11 with the measured FULL-vs-INCREMENTAL repro, the mechanism, and two candidate fix directions. Not release work; drop it from this ticket's scope. The only residual tie to this ticket: if PHP interface refusal does not survive incremental rebuilds, minting a wrong edge (user stories 10 + 19) #11 ships unfixed, the changelog should name it as a known limitation.

    2. Qualified inline-new is EXTRACTED but qualified local-new stays INFERRED — from PHP: typed locals and typed params resolve, with scope poisoning #4's closing comment: "qualified inline-new is EXTRACTED but qualified local-new stays INFERRED (each per its ticket AC) — to be named in changelog/PR." Each is correct per its own ticket, but the asymmetry is user-visible and unexplained; user story 16 is what consumers will weigh edges by. Changelog item.

    3. ObjC behaviour change rides along — from Language-scope the receiver type index in the PHP and ObjC member-call resolvers #8's closing comment: "ObjC behaviour change rides along (pre-existing upstream defect, same shape); defect (b) is a recall improvement (polyglot corpora gain PHP edges previously suppressed by cross-language name collisions)." Both halves are changelog-relevant: ObjC edge behaviour changes, and polyglot corpora gain PHP edges that cross-language name collisions previously suppressed.

    Suggested additional acceptance criteria:

    Two further review findings were filed as their own issues rather than added here, since both are pre-existing code defects rather than release work: #9 (union/intersection-typed receivers still mint a same-file bare-name edge — user story 11 unmet) and #10 (member-call resolvers consume each other's untagged raw calls). Neither blocks this ticket; #9 is a known-limitations candidate for the changelog if it ships unfixed.

  3. filipechagas commented on Aug 5, 2026

    @filipechagas
    CollaboratorAuthor

    Released in db7c8f8 (0.9.34). Orchestrator final gate, independently run: full suite 4024 passed / 36 skipped; live repro fixture yields exactly the three expected edges (leadcontroller_index→leadhunterservice_search INFERRED 0.8; paymentcontroller_store→mixedpaymentservice_resolve EXTRACTED 1.0; static control unchanged). Grammar floor verified against all twelve accepted tree-sitter-php releases (80/80 shape assertions each) — design risks 2/3/4 closed; cache-boundary bump isolated and verified — risk 9 closed, with the existing-graph caveat (needs graphify update ., bump alone does not resweep a cached manifest) documented in the changelog. uv lock --check now passes. Known-open limitations tracked: #9, #10, #15, #16.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready-for-agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions