diff --git a/src/Composer/Command/LicensesCommand.php b/src/Composer/Command/LicensesCommand.php index c30a53c9b..85cb64a7f 100644 --- a/src/Composer/Command/LicensesCommand.php +++ b/src/Composer/Command/LicensesCommand.php @@ -77,10 +77,10 @@ EOT $table = new Table($output); $table->setStyle('compact'); $tableStyle = $table->getStyle(); - if (method_exists($rendererStyle, 'setVerticalBorderChars')) { - $rendererStyle->setVerticalBorderChars(''); + if (method_exists($tableStyle, 'setVerticalBorderChars')) { + $tableStyle->setVerticalBorderChars(''); } else { - $rendererStyle->setVerticalBorderChar(''); + $tableStyle->setVerticalBorderChar(''); } $tableStyle->setCellRowContentFormat('%s '); $table->setHeaders(array('Name', 'Version', 'License'));