1
0
Fork 0

Merge pull request #5813 from curry684/issue-5808

Fix crash when listing root package without versions
pull/5829/head
Jordi Boggiano 2016-10-27 08:53:22 +02:00 committed by GitHub
commit 15d8b7a84d
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ EOT
if ($input->getOption('latest')) {
$latestPackage = $this->findLatestPackage($package, $composer, $phpVersion);
}
$this->printMeta($package, $versions, $installedRepo, $latestPackage);
$this->printMeta($package, $versions, $installedRepo, $latestPackage ?: null);
$this->printLinks($package, 'requires');
$this->printLinks($package, 'devRequires', 'requires (dev)');
if ($package->getSuggests()) {