From 7986d0abee6d99160424b828b5c1bb700046f739 Mon Sep 17 00:00:00 2001 From: Choraimy Kroonstuiver <3661474+axlon@users.noreply.github.com> Date: Mon, 3 Jun 2024 13:28:04 +0200 Subject: [PATCH] Fix incorrect aggregate root ID type on `AggregateRootWithAggregates` --- src/AggregateRootWithAggregates.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/AggregateRootWithAggregates.php b/src/AggregateRootWithAggregates.php index 58a5537e..1ce6576b 100644 --- a/src/AggregateRootWithAggregates.php +++ b/src/AggregateRootWithAggregates.php @@ -7,10 +7,14 @@ use SplObjectStorage; /** + * @template AggregateRootIdType of AggregateRootId * @template T of EventSourcedAggregate */ trait AggregateRootWithAggregates { + /** + * @use AggregateRootBehaviour + */ use AggregateRootBehaviour, AggregateAppliesKnownEvents { AggregateAppliesKnownEvents::apply as applyOnAggregateRoot; }