Skip to content

Commit

Permalink
fix merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidBadura committed Dec 8, 2024
1 parent 96b8640 commit 4a76066
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Subscription/Engine/DefaultSubscriptionEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function (SubscriptionCollection $subscriptions) use ($limit): ProcessedResult {
$messageCounter = 0;

try {
$stream = $this->messageLoader->load($startIndex, $subscriptions);
$stream = $this->messageLoader->load($startIndex, $subscriptions->toArray());

foreach ($stream as $message) {
$messageCounter++;
Expand Down Expand Up @@ -370,7 +370,7 @@ function (SubscriptionCollection $subscriptions) use ($limit): ProcessedResult {
$messageCounter = 0;

try {
$stream = $this->messageLoader->load($startIndex, $subscriptions);
$stream = $this->messageLoader->load($startIndex, $subscriptions->toArray());

foreach ($stream as $message) {
$messageCounter++;
Expand Down
6 changes: 6 additions & 0 deletions src/Subscription/Engine/SubscriptionCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ public function lowestPosition(): int

return $min;
}

/** @return list<Subscription> */
public function toArray(): array
{
return $this->subscriptions;
}
}

0 comments on commit 4a76066

Please sign in to comment.