Skip to content

TASK: Adjust the test adapter to the ReadOptions based read() - #17

Merged
bwaidelich merged 1 commit into
mainfrom
filtered-reads
Nov 12, 2026
Merged

bwaidelich merged 1 commit into
mainfrom
filtered-reads

Conversation

@bwaidelich

@bwaidelich bwaidelich commented Nov 12, 2026 •

Copy link
Copy Markdown
Owner

Summary

The test-only DbalEventStoreAdapter implements the 2.0 contract from bwaidelich/subscription-engine#20. It doesn't support filters.

-public function read(Position $startPosition, int|null $limit = null): iterable
+public function read(Position $startPosition, ReadOptions $options): iterable   // honors limit and upTo, throws for a filter
+public function matches(object $filter, object $event): bool                   // throws

Evidence

Merge Danger

Door: two-way

Blast Radius: tests

No change in src/, the composer constraint stays ^1 || ^2. Merge after bwaidelich/subscription-engine#20.

@bwaidelich
bwaidelich merged commit 94c558d into main Nov 12, 2026
14 of 18 checks passed
@bwaidelich
bwaidelich deleted the filtered-reads branch November 12, 2026 16:34
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