diff --git a/examples/OOPStyle/ExampleOOPPort.php b/examples/OOPStyle/ExampleOOPPort.php index b45b5dc..3b6d81f 100644 --- a/examples/OOPStyle/ExampleOOPPort.php +++ b/examples/OOPStyle/ExampleOOPPort.php @@ -68,7 +68,7 @@ public function applyEvent($aggregate, $customEvent): void public function serializeAggregate($aggregate): array { //Duck typing, do not do this in production but rather use your own interfaces - $aggregate->toArray(); + return $aggregate->toArray(); } /**