Эх сурвалжийг харах

Fix undef var issue when removing a json config key

Jordi Boggiano 12 жил өмнө
parent
commit
02f6a32d08

+ 1 - 0
src/Composer/Json/JsonManipulator.php

@@ -270,6 +270,7 @@ class JsonManipulator
             }
 
             $out = '{' . $this->newline;
+            $elems = array();
             foreach ($data as $key => $val) {
                 $elems[] = str_repeat($this->indent, $depth + 2) . JsonFile::encode($key). ': '.$this->format($val, $depth + 1);
             }