From 2dbad30336812dac90e84a525fde88731cfd78ce Mon Sep 17 00:00:00 2001 From: Rob Bast Date: Tue, 29 Sep 2015 20:57:26 +0200 Subject: [PATCH] fixes #4459 --- src/Composer/Command/ConfigCommand.php | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/Composer/Command/ConfigCommand.php b/src/Composer/Command/ConfigCommand.php index 2b7fd4846..fb7c2bd39 100644 --- a/src/Composer/Command/ConfigCommand.php +++ b/src/Composer/Command/ConfigCommand.php @@ -475,13 +475,7 @@ EOT if (is_array($value) && (!is_numeric(key($value)) || ($key === 'repositories' && null === $k))) { $k .= preg_replace('{^config\.}', '', $key . '.'); $this->listConfiguration($value, $rawVal, $output, $k); - - if (substr_count($k, '.') > 1) { - $k = str_split($k, strrpos($k, '.', -2)); - $k = $k[0] . '.'; - } else { - $k = $origK; - } + $k = $origK; continue; }