Skip to content

feat(php): add call hierarchy - #413

Merged
AJenbo merged 1 commit into
PHPantom-dev:mainfrom
sidux:feat/php-call-hierarchy
Aug 31, 2026
Merged

feat(php): add call hierarchy#413
AJenbo merged 1 commit into
PHPantom-dev:mainfrom
sidux:feat/php-call-hierarchy

Conversation

@sidux

@sidux sidux commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add standard prepare, incoming, and outgoing Call Hierarchy handlers for PHP functions and methods
  • reuse the existing Find References and Go to Definition pipelines instead of adding a second resolver
  • group incoming call sites by their containing callable and deduplicate outgoing targets
  • remove the completed Call Hierarchy roadmap item

Why

Editors already expose the LSP Call Hierarchy UI, but PHPantom did not advertise or answer it. Reusing the existing semantic pipelines keeps hierarchy results consistent with navigation, aliases, inheritance, and future type-engine improvements. It also provides the standard extension point used by higher-level event metadata without putting framework logic into ordinary PHP call resolution.

Validation

  • cargo test call_hierarchy --lib
  • cargo clippy -- -D warnings
  • cargo fmt
  • full stacked suite: cargo test --all-targets (14,286 passed, 2 ignored)

@codecov-commenter

codecov-commenter commented Aug 30, 2026

Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

❌ Patch coverage is 96.27832% with 23 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/call_hierarchy.rs 96.27% 23 Missing ⚠️

📢 Thoughts on this report? Let us know!

Reuse the existing definition and reference pipelines for standard
incoming and outgoing call navigation.
@AJenbo
AJenbo force-pushed the feat/php-call-hierarchy branch from c71e53a to 2972323 Compare August 31, 2026 14:19
@AJenbo
AJenbo merged commit 5aa55e0 into PHPantom-dev:main Aug 31, 2026
7 of 8 checks passed
@AJenbo

AJenbo commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

Thanks

@sidux
sidux deleted the feat/php-call-hierarchy branch August 31, 2026 15:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants