Skip to content

Commit

Permalink
Merge pull request #11 from prolic/fixtests
Browse files Browse the repository at this point in the history
fix ->getParam('recordedEvents', new \ArrayIterator())
  • Loading branch information
codeliner authored Jul 27, 2016
2 parents ea63903 + 68aaa1e commit 61bd53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SnapshotPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function setUp(EventStore $eventStore)
*/
public function onEventStoreCommitPost(ActionEvent $actionEvent)
{
$recordedEvents = $actionEvent->getParam('recordedEvents', []);
$recordedEvents = $actionEvent->getParam('recordedEvents', new \ArrayIterator());

$snapshots = [];

Expand Down

0 comments on commit 61bd53d

Please sign in to comment.