File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
dev/tests/static/testsuite/Magento/Test/Legacy/Magento/App/Action Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -125,12 +125,10 @@ private static function getFilesFromListFile(
125
125
$ listFiles = glob ($ listsBaseDir . '/_files/ ' . $ listFilePattern );
126
126
if (!empty ($ listFiles )) {
127
127
foreach ($ listFiles as $ listFile ) {
128
- // phpcs:ignore Magento2.Performance.ForeachArrayMerge.ForeachArrayMerge
129
- $ filesDefinedInList = array_merge (
130
- $ filesDefinedInList ,
131
- file ($ listFile , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES )
132
- );
128
+ $ filesDefinedInList [] = file ($ listFile , FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES );
133
129
}
130
+
131
+ $ filesDefinedInList = array_merge ([], ...$ filesDefinedInList );
134
132
} else {
135
133
$ filesDefinedInList = call_user_func ($ noListCallback );
136
134
}
You can’t perform that action at this time.
0 commit comments