Repository navigation
fix: bugs found while adding unit test coverage - #42
Merged
Merged
Conversation
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…leware Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Refs #40 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Fixes the bugs reported in #40. There is one commit per bug, and each commit has its own changelog entry and tests.
EnqueuerContainer::bind()throws anInfrastructureExceptionwhen given a string binding without a PSR container.KeyedSetOfErrors::put()andmerge()sort keys case-insensitively, the same as the constructor. A privatesort()method now does the sorting for all three.Meta::merge()usesarray_replace(), so numeric string keys are not renumbered.Errorcompares the message and key against'', so it accepts'0'for both.UuidV4/UuidV7version contract checks now have a message (Expecting a version 4 UUID./Expecting a version 7 UUID.).FakeExceptionReporterrethrows once the reported count is at or past the expected count.FakeLogger::messages()only filters outnull, so a message of'0'is kept.LogPushedToQueueimplementsQueueMiddlewareinstead ofCommandMiddleware, and__invoke()now returnsvoid. Anyone who type-hints against the old interface will see a small BC change.From the additional notes:
FakeContainer: a binding or instance now overrides the built-in reporter, logger and unit of work.has()no longer callsget(), so it does not run the binding closure. It returnstruefor any bound id, even one whose binding resolves tonull;get()still throws not-found in that case.FakeUnitOfWork: the unreachable exception is left as it is.composer allpasses.Closes #40
🤖 Generated with Claude Code