We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d54a476 commit f8d530eCopy full SHA for f8d530e
src/ArrayConfig.php
@@ -157,15 +157,11 @@ private function normalizeConfig(array $config): array
157
$delimitersPattern = '/[' . preg_quote($delimiterChars, '/') . ']/';
158
159
foreach ($config as $key => $value) {
160
- if (\is_array($value)) {
161
- if (!Util::isAssoc($value)) {
162
- continue;
163
- }
164
-
+ if (\is_array($value) && Util::isAssoc($value)) {
165
$value = $this->normalizeConfig($value);
166
}
167
168
- if (false === strpbrk($key, $delimiterChars)) {
+ if (!\is_string($key) || false === strpbrk($key, $delimiterChars)) {
169
$normalized[$key] = $value;
170
171
continue;
0 commit comments