From d1f8a3948dd568c711b83d5bf2abbee81db955a0 Mon Sep 17 00:00:00 2001 From: Bert van Hoekelen Date: Mon, 2 Dec 2024 14:22:55 +0100 Subject: [PATCH] onEventReplayed can be null --- src/Projectionist.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Projectionist.php b/src/Projectionist.php index 4f67179b..d56c7b3f 100644 --- a/src/Projectionist.php +++ b/src/Projectionist.php @@ -319,7 +319,7 @@ public function isReplaying(): bool public function replay( Collection $projectors, int $startingFromEventId = 0, - callable $onEventReplayed = null, + ?callable $onEventReplayed = null, ?string $aggregateUuid = null ): void { $projectors = (new EventHandlerCollection($projectors))