Skip to content

Commit

Permalink
Initialise actorId to null to avoid initialization error
Browse files Browse the repository at this point in the history
  • Loading branch information
benr77 committed Dec 14, 2024
1 parent 14ccce4 commit 7b80e52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Domain/Model/Traits/DomainEventTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ trait DomainEventTrait
*/
private string $occurredOn;

private string|null $actorId;
private string|null $actorId = null;

public function setActorId(?string $actorId): void
{
Expand Down

0 comments on commit 7b80e52

Please sign in to comment.