Bladeren bron

Fix warning

Jordi Boggiano 13 jaren geleden
bovenliggende
commit
72b7b169e7
1 gewijzigde bestanden met toevoegingen van 1 en 1 verwijderingen
  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)