Skip to content

[Bug]: PHP route-prefix loop uses is on tree-sitter nodes (same class as #5113) #5135

Closed

Description

@safishamsi

tree-sitter returns a fresh Node wrapper per access, so an is identity check in the PHP route-prefix loop in graphify/extractors/engine.py never matches and the node is processed twice (same root cause as #5113). Fix: use == (compares the underlying TSNode). One-line change + regression test.

Activity

  1. github-actions commented on Nov 10, 2026

    @github-actions

    Thanks for opening this issue, @safishamsi. A maintainer will take a look soon.

    If you would like to discuss it in real time, come say hi on our Discord server. For longer-form questions and ideas there is also GitHub Discussions.

    To help us triage, please make sure the report includes what you expected, what actually happened, and the steps (and a small sample) to reproduce it.

  2. safishamsi commented on Nov 12, 2026

    @safishamsi
    MemberAuthor

    Fixed by #5141 (094a007), released in graphify 0.9.107.

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