Skip to content

docs: fix typos and code examples, complete upgrade guide - #52

Merged
lindyhopchris merged 7 commits into
developfrom
fix/docs-review
Nov 19, 2026
Merged

lindyhopchris merged 7 commits into
developfrom
fix/docs-review

Conversation

@lindyhopchris

Copy link
Copy Markdown
Member

Summary

A review of the docs against the codebase. Fixes typos and many code examples that had drifted from the actual API (stale namespaces, misspelled class names, signatures that would fatal if copied).

Commits are grouped as follows:

  • Typos and grammar: prose-only fixes across all pages.
  • Toolkit and domain examples:
    • void methods returning values, and StringId type errors.
    • UuidFactory return types, and documented UuidV4/UuidV7 and IsEntityWithTypedId.
    • ListOfErrors::any() replaces the removed contains().
  • Application examples:
    • Toolkit\Result namespace, and TearDown* middleware names.
    • BusMiddleware signature, and handlers use execute().
    • UnitOfWorkManager named argument, and Queue::push().
    • Missing imports and mismatched adapter class names.
  • Infrastructure examples:
    • Removed new on the abstract ClosureQueue, and fixed undefined variables.
    • Corrected the fake exception reporter class name.
    • Publisher and enqueuer class names now match their attributes.
  • Upgrade guide: added the missing 7.0 CommandQueuer removal, 6.0 messaging namespace moves, PHP 8.4 minimum and ListOfErrors changes. Also fixed old interface names in older sections.
  • GitHub URL: points to cloudcreativity/php-ddd-modules.
  • Iterables guide: replaces the TODO page with documentation for ListIterator, NonEmptyList, KeyedSet and LazyList.

Example namespaces are now consistent across pages:

  • Application\Ports\OutboundEventBus
  • Application\Ports\Queue\{Queue,InternalQueue}
  • Application\Internal
  • Application\Orchestration\Listeners

No changelog entry, as these are docs-only changes.

Test plan

  • npm run docs:build succeeds
  • No remaining references to Toolkit\Results, Teardown*, ->contains(, geyKey or the old repo URL

🤖 Generated with Claude Code

lindyhopchris and others added 7 commits November 19, 2026 11:00
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lindyhopchris lindyhopchris self-assigned this Nov 19, 2026
@lindyhopchris
lindyhopchris merged commit 31c32b5 into develop Nov 19, 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.

1 participant