1
0
Fork 0

Fix tests

pull/7364/head
Jordi Boggiano 2018-05-15 16:06:56 +02:00
parent 70e431368f
commit c6d53abf89
1 changed files with 4 additions and 0 deletions

View File

@ -203,6 +203,10 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
$json = $this->rfs->getContents($hostname, $url, false);
$search = JsonFile::parseJson($json, $url);
if (empty($search['results'])) {
return array();
}
$results = array();
foreach ($search['results'] as $result) {
// do not show virtual packages in results as they are not directly useful from a composer perspective