Skip to content

Commit

Permalink
Return serialized aggregate state from example port
Browse files Browse the repository at this point in the history
  • Loading branch information
codeliner committed Nov 10, 2018
1 parent 52cacfd commit 58c68cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/OOPStyle/ExampleOOPPort.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

/**
Expand Down

0 comments on commit 58c68cb

Please sign in to comment.