Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Table format output has unexpected symfony dependency #1

Open
brettgoss opened this issue Apr 27, 2021 · 0 comments
Open

Table format output has unexpected symfony dependency #1

brettgoss opened this issue Apr 27, 2021 · 0 comments

Comments

@brettgoss
Copy link

Summary
When trying to run this plugin for the first time, I received a fatal error complaining about symfony/console. It looks like there might be a dependency on symfony/console that is not listed as a requirement?

Note that this only seems to be an issue with the table format (which is the default output). If I run composer check-licenses -f json, the plugin works as expected.

To Reproduce

  1. Install this plugin in a project either without symfony installed, or with symfony 4.4.* installed
  2. Run composer check-licenses

Stack Trace

PHP Fatal error:  Uncaught Error: Call to undefined method Symfony\Component\Console\Helper\TableStyle::setVerticalBorderChars() in vendor/metasyntactical/composer-plugin-license-check/src/Command/CheckLicensesCommand.php:70
Stack trace:
#0 phar:///usr/local/bin/composer/vendor/symfony/console/Command/Command.php(245): Metasyntactical\Composer\LicenseCheck\Command\CheckLicensesCommand->execute()
#1 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(835): Symfony\Component\Console\Command\Command->run()
#2 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(185): Symfony\Component\Console\Application->doRunCommand()
#3 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(310): Symfony\Component\Console\Application->doRun()
#4 phar:///usr/local/bin/composer/vendor/symfony/console/Application.php(117): Composer\Console\Application->doRun()
#5 phar:///usr/local/bin/composer/src/Composer/Console/Application.php(122): Symfony\Component\Console\Application->run()
#6 phar:// in vendor/metasyntactical/composer-plugin-license-check/src/Command/CheckLicensesCommand.php on line 70
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant