File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
lib/internal/Magento/Framework/Data Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -500,16 +500,19 @@ public function clear()
500
500
*/
501
501
public function walk ($ callback , array $ args = [])
502
502
{
503
- $ results = [];
503
+ $ results = [];
504
504
$ useItemCallback = is_string ($ callback ) && strpos ($ callback , ':: ' ) === false ;
505
505
foreach ($ this ->getItems () as $ id => $ item ) {
506
+ $ params = $ args ;
506
507
if ($ useItemCallback ) {
507
508
$ cb = [$ item , $ callback ];
508
509
} else {
509
510
$ cb = $ callback ;
510
- array_unshift ($ args , $ item );
511
+ array_unshift ($ params , $ item );
511
512
}
512
- $ results [$ id ] = call_user_func_array ($ cb , $ args );
513
+ //@codingStandardsIgnoreStart
514
+ $ results [$ id ] = call_user_func_array ($ cb , $ params );
515
+ //@codingStandardsIgnoreEnd
513
516
}
514
517
return $ results ;
515
518
}
You can’t perform that action at this time.
0 commit comments