Skip to content

Document DocBlockTagOrder configuration#61

Merged
dereuromark merged 2 commits into
masterfrom
docs-docblock-tag-order
May 12, 2026
Merged

Document DocBlockTagOrder configuration#61
dereuromark merged 2 commits into
masterfrom
docs-docblock-tag-order

Conversation

@dereuromark
Copy link
Copy Markdown
Contributor

Summary

Follow-up to #59 / #60 - documents the three configurable properties on PhpCollective.Commenting.DocBlockTagOrder in docs/README.md. Until now these were only discoverable by reading the sniff source.

The section covers:

  • Default values and XML override snippets for all three
  • Both common innerOrder recipes - CRUD-style method ordering plus alphabetized property lists for IDE-helper-generated docblocks
  • The asymmetric handling of the leading at-sign on tag names - normalized for order / classOrder, required literal for innerOrder keys
  • The InnerOrderInvalid error code as a scoping lever, with an exclude-pattern recipe for keeping inner ordering on tables/views/controllers while skipping entity docblocks (where DB schema order is meaningful)

Slotted between the "Disallow void return type on magic methods" and "Excluding test related comparison files" sections, matching the existing per-rule customization pattern in docs/README.md.

Add a docs/README.md section covering the three public properties of
PhpCollective.Commenting.DocBlockTagOrder: order (function/method
docblocks), classOrder (class/interface/trait docblocks), and
innerOrder (within-bucket ordering with prefix patterns). These were
only discoverable by reading the sniff source.

Includes both common innerOrder recipes (CRUD method ordering plus
alphabetized property lists), notes the asymmetric handling of the
leading at-sign on tag names between order/classOrder and innerOrder
keys, and explains the InnerOrderInvalid error code as a scoping
lever for keeping inner ordering on tables/views/controllers while
skipping entity docblocks where DB-schema order is meaningful.
@dereuromark dereuromark added the documentation Improvements or additions to documentation label May 12, 2026
@dereuromark dereuromark merged commit b21e5e9 into master May 12, 2026
4 checks passed
@dereuromark dereuromark deleted the docs-docblock-tag-order branch May 12, 2026 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant