Collect dependencies defined in @throws docblock tags#513
Draft
micheleorselli wants to merge 3 commits intomainfrom
Draft
Collect dependencies defined in @throws docblock tags#513micheleorselli wants to merge 3 commits intomainfrom
micheleorselli wants to merge 3 commits intomainfrom
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #513 +/- ##
============================================
+ Coverage 97.75% 97.79% +0.03%
- Complexity 615 626 +11
============================================
Files 80 80
Lines 1778 1810 +32
============================================
+ Hits 1738 1770 +32
Misses 40 40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Collaborator
|
fixes #514 |
Collaborator
|
to complete this we should fix the row number, that now is the first line of the comment instead of the line of the throws. |
Add two integration tests to verify that dependencies defined in @throws docblock tags are properly collected: - test_it_collects_throws_tag_as_dependencies: Tests collection of relative and fully qualified exception names in @throws tags - test_it_collects_throws_tag_with_fully_qualified_names: Tests handling of different naming conventions (backslash-prefixed, relative to namespace) These tests validate that the @throws tag parsing feature works end-to-end and that exceptions are properly resolved to their fully qualified names. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
fain182
pushed a commit
that referenced
this pull request
Feb 10, 2026
…correct line numbers - Merge PR #513 branch (collect_throws_types) into working branch - Resolve conflicts in FileVisitor.php (keep both handlePropertyHookNode and handleThrowsTags) - Fix @throws line number: previously used method start line, now computes the actual file line of each @throws tag using PHPStan's startLine attribute combined with the docblock's start line in the file - Modify Docblock::getThrowTagsTypes() to return [{type, line}] pairs instead of plain strings, exposing per-tag line info from PHPStan parser - Update tests to reflect that PHP core classes (e.g. \Exception) are filtered out by the existing isPhpCoreClass() check in ClassDescriptionBuilder Fixes #514 https://claude.ai/code/session_01H3NqdUfGArp9bzf1WiXMos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



No description provided.