Fix tests

main
Jordi Boggiano 6 years ago
parent 70e431368f
commit c6d53abf89

@ -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

Loading…
Cancel
Save