Merge pull request #5813 from curry684/issue-5808
Fix crash when listing root package without versionspull/5829/head
commit
15d8b7a84d
|
@ -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()) {
|
||||
|
|
Loading…
Reference in New Issue