1
0
Fork 0

Merge pull request #441 from igorw/fix-show-without-keywords

fix notice when running show command on package without keywords
pull/442/head
Jordi Boggiano 2012-03-12 01:18:54 -07:00
commit e82e5c39b5
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ EOT
{ {
$output->writeln('<info>name</info> : ' . $package->getPrettyName()); $output->writeln('<info>name</info> : ' . $package->getPrettyName());
$output->writeln('<info>descrip.</info> : ' . $package->getDescription()); $output->writeln('<info>descrip.</info> : ' . $package->getDescription());
$output->writeln('<info>keywords</info> : ' . join(', ', $package->getKeywords())); $output->writeln('<info>keywords</info> : ' . join(', ', $package->getKeywords() ?: array()));
$this->printVersions($input, $output, $package, $installedRepo, $repos); $this->printVersions($input, $output, $package, $installedRepo, $repos);
$output->writeln('<info>type</info> : ' . $package->getType()); $output->writeln('<info>type</info> : ' . $package->getType());
$output->writeln('<info>license</info> : ' . implode(', ', $package->getLicense())); $output->writeln('<info>license</info> : ' . implode(', ', $package->getLicense()));