From 39b6f656f640dae71e85bf36a06f0dc410b8f42d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Tue, 28 Aug 2018 20:21:17 +0200 Subject: [PATCH] Undo creating new sub arrays as this seems to be not required --- Utils/ArrayUtils.php | 8 -------- 1 file changed, 8 deletions(-) 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) {