Skip to content

PHP use-import map 5/5: incremental-rebuild parity marker for declared FQNs #23

Closed

Description

@filipechagas

Parent

Spec: #18 (ticket 5/5). Incremental-rebuild parity for #22; same-release requirement.

What to build

Persist the declared FQNs of PHP classes so the (namespace, simple_name) index (#22) can be rebuilt when the defining files are unchanged in an incremental run. Follow the established marker channel precedent (commits 8d051c6, 85bb8df did this for interfaces, then enums+traits):

  • Stamp: a persisted underscore marker (e.g. _php_class_fqns) on the file node at engine.py:5262-5290.
  • Preserve in graph.json: extract.py:6171-6176 (deliberately not popped).
  • Read back: watch.py:1205-1225 and cli.py:3140-3160 copy it onto context node stubs.
  • Re-inject as synthetic per-file entries alongside _php_context_interface_entry (extract.py:3106-3136, wired at :6019-6034).

Constraints

  • Mechanical 4-site edit; the risk is missing one site — grep for the sibling markers (_php_non_class_types, _php_interfaces) and touch every place they appear.
  • Mirrored incremental tests per the test_php_member_calls.py:1544-1878 pattern (_full_then_incremental): every PHP use-import map 4/5: positive alias binding via namespace index #22 positive scenario must behave identically when the defining file is untouched by the incremental pass.
  • Pre-marker graphs (older graph.json) must fail closed, matching extract.py:6171 precedent.

Acceptance criteria

Blocked by

#22 (releases together).

Activity

  1. added a commit that references this issue on Aug 6, 2026
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions