diff --git a/src/ConstructingAggregateRootRepository.php b/src/ConstructingAggregateRootRepository.php index 68121202..ecb42f1d 100644 --- a/src/ConstructingAggregateRootRepository.php +++ b/src/ConstructingAggregateRootRepository.php @@ -76,7 +76,7 @@ public function persist(object $aggregateRoot): void public function persistEvents(AggregateRootId $aggregateRootId, int $aggregateRootVersion, object ...$events): void { - if (count($events) === 0) { + if (0 === count($events)) { return; }