Fix type error with null descriptions, fixes #10924
parent
9a6d63f0f4
commit
8304ea0695
|
@ -1070,7 +1070,12 @@ EOT
|
|||
foreach ($arrayTree as $package) {
|
||||
$io->write(sprintf('<info>%s</info>', $package['name']), false);
|
||||
$io->write(' ' . $package['version'], false);
|
||||
if (isset($package['description'])) {
|
||||
$io->write(' ' . strtok($package['description'], "\r\n"));
|
||||
} else {
|
||||
// output newline
|
||||
$io->write('');
|
||||
}
|
||||
|
||||
if (isset($package['requires'])) {
|
||||
$requires = $package['requires'];
|
||||
|
|
Loading…
Reference in New Issue