Skip to content

Commit 9dca4e9

Browse files
oshmyheliukshiftedreality
authored andcommitted
MAGECLOUD-3957: Error with static content deploy because of empty locale for admin user in config.php in case of dump after installation (#575)
1 parent 8a4610e commit 9dca4e9

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Test/Unit/Util/ArrayManagerTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ public function filterDataProvider(): array
114114
false,
115115
[],
116116
],
117+
[
118+
[
119+
'admin_user/locale/code' => [],
120+
],
121+
'admin_user/locale/code',
122+
false,
123+
[],
124+
],
117125
[
118126
[
119127
'admin_user/locale/code' => 'en_US',

src/Util/ArrayManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function filter(array $array, string $pattern, $ending = true): array
5555
}
5656
}
5757

58-
return array_unique(array_values($filteredResult));
58+
return array_unique(array_filter(array_values($filteredResult)));
5959
}
6060

6161
/**

0 commit comments

Comments
 (0)