Skip to content

Commit

Permalink
Reset PluginCollection state better
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed May 22, 2019
1 parent ce49935 commit 7745d0c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Core/PluginCollection.php
Expand Up @@ -176,6 +176,9 @@ public function remove($name)
public function clear()
{
$this->plugins = [];
$this->names = [];
$this->positions = [];
$this->loopDepth = -1;

return $this;
}
Expand Down

0 comments on commit 7745d0c

Please sign in to comment.