Skip to content

Commit

Permalink
Tweak loop in PendingProjections
Browse files Browse the repository at this point in the history
  • Loading branch information
bwaidelich committed Aug 26, 2023
1 parent 086ae63 commit 0c97437
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,10 +100,10 @@ public static function fromProjectionsAndEventsAndSequenceNumber(
$pendingProjectionsArray = [];
$sequenceNumberPerProjection = [];
foreach ($events as $event) {
if ($event instanceof DecoratedEvent) {
$event = $event->innerEvent;
}
foreach ($allProjections as $projection) {
if ($event instanceof DecoratedEvent) {
$event = $event->innerEvent;
}
if ($projection->canHandle($event)) {
$sequenceNumberPerProjection[$projection::class] = $sequenceNumberInteger;
if (!in_array($projection, $pendingProjectionsArray, true)) {
Expand Down

0 comments on commit 0c97437

Please sign in to comment.