1
0
Fork 0

Fix issue handling false children in why-not command

pull/5021/head
Jordi Boggiano 2016-03-07 00:44:45 +00:00
parent e96c566b67
commit a15779cf53
1 changed files with 3 additions and 1 deletions

View File

@ -159,7 +159,9 @@ class BaseDependencyCommand extends BaseCommand
$doubles[$unique] = true;
$version = (strpos($package->getPrettyVersion(), 'No version set') === 0) ? '-' : $package->getPrettyVersion();
$rows[] = array($package->getPrettyName(), $version, $link->getDescription(), sprintf('%s (%s)', $link->getTarget(), $link->getPrettyConstraint()));
$queue = array_merge($queue, $children);
if ($children) {
$queue = array_merge($queue, $children);
}
}
$results = $queue;
$table = array_merge($rows, $table);