1
0
Fork 0

Fix type error with null descriptions, fixes #10924

pull/10933/head
Jordi Boggiano 2022-07-05 16:23:53 +02:00
parent 9a6d63f0f4
commit 8304ea0695
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 6 additions and 1 deletions

View File

@ -1070,7 +1070,12 @@ EOT
foreach ($arrayTree as $package) { foreach ($arrayTree as $package) {
$io->write(sprintf('<info>%s</info>', $package['name']), false); $io->write(sprintf('<info>%s</info>', $package['name']), false);
$io->write(' ' . $package['version'], false); $io->write(' ' . $package['version'], false);
$io->write(' ' . strtok($package['description'], "\r\n")); if (isset($package['description'])) {
$io->write(' ' . strtok($package['description'], "\r\n"));
} else {
// output newline
$io->write('');
}
if (isset($package['requires'])) { if (isset($package['requires'])) {
$requires = $package['requires']; $requires = $package['requires'];