Skip to content

Commit

Permalink
allow empty payload in occur-method
Browse files Browse the repository at this point in the history
  • Loading branch information
prolic committed Nov 16, 2015
1 parent f4b4d65 commit cd988de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/AggregateChanged.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class AggregateChanged extends DomainEvent
* @param array $payload
* @return static
*/
public static function occur($aggregateId, array $payload)
public static function occur($aggregateId, array $payload = []s)
{
$instance = new static($aggregateId, $payload);

Expand Down

0 comments on commit cd988de

Please sign in to comment.