Browse Source

Fix warning

Jordi Boggiano 13 years ago
parent
commit
72b7b169e7
1 changed files with 1 additions and 1 deletions
  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)