diff --git a/src/Composer/Repository/FilterRepository.php b/src/Composer/Repository/FilterRepository.php index 92c8283a8..78be0e225 100644 --- a/src/Composer/Repository/FilterRepository.php +++ b/src/Composer/Repository/FilterRepository.php @@ -116,6 +116,10 @@ class FilterRepository implements RepositoryInterface } } + if (!$packageMap) { + return array('namesFound' => array(), 'packages' => array()); + } + $result = $this->repo->loadPackages($packageMap, $acceptableStabilities, $stabilityFlags); if (!$this->canonical) { $result['namesFound'] = array();