Просмотр исходного кода

Merge remote-tracking branch 'alcohol/weird-config-listing-issue'

Jordi Boggiano 9 лет назад
Родитель
Сommit
5ccaad92c1
1 измененных файлов с 1 добавлено и 7 удалено
  1. 1 7
      src/Composer/Command/ConfigCommand.php

+ 1 - 7
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;
             }