Jordi Boggiano %!s(int64=13) %!d(string=hai) anos
pai
achega
72b7b169e7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/Composer/Repository/VcsRepository.php

+ 1 - 1
src/Composer/Repository/VcsRepository.php

@@ -35,7 +35,7 @@ class VcsRepository extends ArrayRepository
 
         $this->url = $config['url'];
         $this->io = $io;
-        $this->type = $config['type'];
+        $this->type = isset($config['type']) ? $config['type'] : 'vcs';
     }
 
     public function setDebug($debug)