diff --git a/src/Composer/Command/ShowCommand.php b/src/Composer/Command/ShowCommand.php index 72242073b..632d6a1b6 100644 --- a/src/Composer/Command/ShowCommand.php +++ b/src/Composer/Command/ShowCommand.php @@ -1070,7 +1070,12 @@ EOT foreach ($arrayTree as $package) { $io->write(sprintf('%s', $package['name']), 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'])) { $requires = $package['requires'];