-
Notifications
You must be signed in to change notification settings - Fork 0
fix: enhance annotation parsing to support multiple values per tag #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughDocBlockHeaderFixer was changed to aggregate duplicate docblock annotations: the first occurrence remains a string, subsequent occurrences convert the stored value to an array and append new values. Method PHPDoc and return-type annotations were updated to reflect values of type Changes
Sequence Diagram(s)sequenceDiagram
participant Parser as DocBlock Parser
participant Store as Annotations Store
rect rgb(220,240,220)
Note over Parser,Store: Old behavior (overwrite)
Parser->>Store: read @tag "A"
Store->>Store: set tag="A"
Parser->>Store: read @tag "B"
Store->>Store: overwrite tag="B"
end
rect rgb(240,220,220)
Note over Parser,Store: New behavior (aggregate)
Parser->>Store: read @tag "A"
Store->>Store: set tag="A" (string)
Parser->>Store: read @tag "B"
Store->>Store: convert to ["A","B"] (array)
Parser->>Store: read @tag "C"
Store->>Store: append -> ["A","B","C"]
end
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🧰 Additional context used🧬 Code graph analysis (1)tests/src/Rules/DocBlockHeaderFixerTest.php (1)
🔇 Additional comments (7)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Pull Request Test Coverage Report for Build 18747984975Details
💛 - Coveralls |
Summary by CodeRabbit
Bug Fixes
Tests