@@ -71,7 +71,7 @@ public function ___init()
71
71
*/
72
72
public function ___callParent ($ method , array $ arguments )
73
73
{
74
- return parent ::$ method (...$ arguments );
74
+ return parent ::$ method (...array_values ( $ arguments) );
75
75
}
76
76
77
77
/**
@@ -120,7 +120,7 @@ protected function ___callPlugins($method, array $arguments, array $pluginInfo)
120
120
foreach ($ pluginInfo [DefinitionInterface::LISTENER_BEFORE ] as $ code ) {
121
121
$ pluginInstance = $ this ->pluginList ->getPlugin ($ this ->subjectType , $ code );
122
122
$ pluginMethod = 'before ' . $ capMethod ;
123
- $ beforeResult = $ pluginInstance ->$ pluginMethod ($ this , ...$ arguments );
123
+ $ beforeResult = $ pluginInstance ->$ pluginMethod ($ this , ...array_values ( $ arguments) );
124
124
if ($ beforeResult ) {
125
125
$ arguments = $ beforeResult ;
126
126
}
@@ -139,11 +139,11 @@ protected function ___callPlugins($method, array $arguments, array $pluginInfo)
139
139
};
140
140
$ pluginInstance = $ this ->pluginList ->getPlugin ($ this ->subjectType , $ code );
141
141
$ pluginMethod = 'around ' . $ capMethod ;
142
- $ result = $ pluginInstance ->$ pluginMethod ($ this , $ next , ...$ arguments );
142
+ $ result = $ pluginInstance ->$ pluginMethod ($ this , $ next , ...array_values ( $ arguments) );
143
143
unset($ pluginInstance , $ pluginMethod );
144
144
} else {
145
145
// Call original method
146
- $ result = parent ::$ method (...$ arguments );
146
+ $ result = parent ::$ method (...array_values ( $ arguments) );
147
147
}
148
148
if (isset ($ pluginInfo [DefinitionInterface::LISTENER_AFTER ])) {
149
149
// Call 'after' listeners
0 commit comments