diff --git a/Utils/ArrayUtils.php b/Utils/ArrayUtils.php index b1340a5b0..d4487d8fd 100644 --- a/Utils/ArrayUtils.php +++ b/Utils/ArrayUtils.php @@ -95,17 +95,9 @@ final class ArrayUtils if ($pathParts === false) { throw new \Exception(); } - - $pathPartCount = \count($pathParts); - $c = 1; foreach ($pathParts as $key) { - if (!isset($current[$key]) && $pathPartCount < $c) { - $current = []; - } - $current = &$current[$key]; - ++$c; } if ($overwrite) {