File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/internal/Magento/Framework/App/Utility Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -371,12 +371,11 @@ public function getMainConfigFiles($asDataSet = true)
371
371
}
372
372
$ globPaths = [BP . '/app/etc/config.xml ' , BP . '/app/etc/*/config.xml ' ];
373
373
$ configXmlPaths = array_merge ($ globPaths , $ configXmlPaths );
374
- $ files = [];
374
+ $ files = [[] ];
375
375
foreach ($ configXmlPaths as $ xmlPath ) {
376
- // phpcs:ignore Magento2.Performance.ForeachArrayMerge
377
- $ files = array_merge ($ files , glob ($ xmlPath , GLOB_NOSORT ));
376
+ $ files [] = glob ($ xmlPath , GLOB_NOSORT );
378
377
}
379
- self ::$ _cache [$ cacheKey ] = $ files ;
378
+ self ::$ _cache [$ cacheKey ] = array_merge (... $ files) ;
380
379
}
381
380
if ($ asDataSet ) {
382
381
return self ::composeDataSets (self ::$ _cache [$ cacheKey ]);
You can’t perform that action at this time.
0 commit comments