Skip to content

Commit

Permalink
null when empty
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Mar 7, 2020
1 parent 899cddb commit ddc2313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EventBehaviour.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ final public function getRecordedEvents(): EventCollection
*/
final public function clearRecordedEvents(): void
{
$this->recordedEvents = new \ArrayObject();
$this->recordedEvents = null;
}

/**
Expand Down

0 comments on commit ddc2313

Please sign in to comment.