From 7b80e5272b0ce8c3bd3107e931b03e10ca898988 Mon Sep 17 00:00:00 2001 From: Ben Roberts Date: Sat, 14 Dec 2024 09:28:58 +0100 Subject: [PATCH] Initialise actorId to null to avoid initialization error --- src/Domain/Model/Traits/DomainEventTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Domain/Model/Traits/DomainEventTrait.php b/src/Domain/Model/Traits/DomainEventTrait.php index 7762e54..7a04b24 100644 --- a/src/Domain/Model/Traits/DomainEventTrait.php +++ b/src/Domain/Model/Traits/DomainEventTrait.php @@ -21,7 +21,7 @@ trait DomainEventTrait */ private string $occurredOn; - private string|null $actorId; + private string|null $actorId = null; public function setActorId(?string $actorId): void {