Skip to content

Commit 3c0372b

Browse files
committed
[FIX] dev:di:info duplicates plugin info
1 parent 0383b22 commit 3c0372b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Developer/Model/Di/PluginList.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,8 @@ private function addPluginToList($pluginInstance, $pluginMethod, $methodTypes, $
143143
{
144144
if ($methodTypes & $typeCode) {
145145
if (!array_key_exists($pluginInstance, $this->pluginList[$this->pluginTypeMapping[$typeCode]])) {
146-
$this->pluginList[$this->pluginTypeMapping[$typeCode]][$pluginInstance] = [];
146+
$this->pluginList[$this->pluginTypeMapping[$typeCode]][$pluginInstance][] = $pluginMethod;
147147
}
148-
$this->pluginList[$this->pluginTypeMapping[$typeCode]][$pluginInstance][] = $pluginMethod ;
149148
}
150149
}
151150
}

0 commit comments

Comments
 (0)