Skip to content

Commit 4f9762c

Browse files
committed
Reset PluginCollection state better
1 parent aae4373 commit 4f9762c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

PluginCollection.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,9 @@ public function remove($name)
176176
public function clear()
177177
{
178178
$this->plugins = [];
179+
$this->names = [];
180+
$this->positions = [];
181+
$this->loopDepth = -1;
179182

180183
return $this;
181184
}

0 commit comments

Comments
 (0)