Skip to content

Render @type tags in documentation output#25

Merged
akirk merged 1 commit intomainfrom
fix/render-type-tags-in-docs
Jan 30, 2026
Merged

Render @type tags in documentation output#25
akirk merged 1 commit intomainfrom
fix/render-type-tags-in-docs

Conversation

@akirk
Copy link
Copy Markdown
Owner

@akirk akirk commented Jan 30, 2026

Summary

  • Renders @type tags as sub-items in the Parameters section of generated documentation
  • Handles generic type syntax like array<string, string> correctly
  • Fixes namespace prefixing for generic types

This is a follow-up to #24 which fixed the fatal error but didn't render the type information.

Closes #23

Example output

See multiple_type_tags_hook for a live example.

Test plan

  • Run vendor/bin/phpunit - all 48 tests pass (212 assertions)
  • Run vendor/bin/phpcs - no style violations

The previous fix (#24) prevented the fatal error when parsing multiple
@type tags, but the tag information was not being rendered in the
generated documentation.

This change:
- Renders @type tags as sub-items in the Parameters section
- Handles generic type syntax like array<string, string>
- Fixes namespace prefixing for generic types

Closes #23
@akirk akirk merged commit d4672e2 into main Jan 30, 2026
2 checks passed
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.

How are arrays handled?

1 participant