diff --git a/Utils/ArrayUtils.php b/Utils/ArrayUtils.php index b87b6c5a1..d4487d8fd 100644 --- a/Utils/ArrayUtils.php +++ b/Utils/ArrayUtils.php @@ -102,10 +102,10 @@ final class ArrayUtils if ($overwrite) { $current = $value; - } elseif (\is_array($current) && !is_array($value)) { + } elseif (\is_array($current) && !\is_array($value)) { $current[] = $value; - } elseif (\is_array($current) && is_array($value)) { - $current = array_merge($current, $value); + } elseif (\is_array($current) && \is_array($value)) { + $current = \array_merge($current, $value); } elseif (\is_scalar($current) && $current !== null) { $current = [$current, $value]; } else {