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

Composer collector exception when package does not exist #1230

Closed
patrickkusebauch opened this issue Jun 22, 2023 · 1 comment · Fixed by #1279
Closed

Composer collector exception when package does not exist #1230

patrickkusebauch opened this issue Jun 22, 2023 · 1 comment · Fixed by #1279

Comments

@patrickkusebauch
Copy link
Collaborator

> php vendor/qossmic/deptrac/deptrac.php --config-file=deptrac.config.php --report-uncovered
 243/243 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

PHP Warning:  Undefined array key "contributte/oauth2-client" in /var/www/vendor/qossmic/deptrac/src/Core/Layer/Collector/ComposerFilesParser.php on line 80
PHP Fatal error:  Uncaught TypeError: Qossmic\Deptrac\Core\Layer\Collector\ComposerFilesParser::extractNamespaces(): Argument #1 ($package) must be of type array, null given, called in /var/www/vendor/qossmic/deptrac/src/Core/Layer/Collector/ComposerFilesParser.php on line 80 and defined in /var/www/vendor/qossmic/deptrac/src/Core/Layer/Collector/ComposerFilesParser.php:115
Stack trace:
#0 /var/www/vendor/qossmic/deptrac/src/Core/Layer/Collector/ComposerFilesParser.php(80): Qossmic\Deptrac\Core\Layer\Collector\ComposerFilesParser->extractNamespaces()
#1 /var/www/vendor/qossmic/deptrac/src/Core/Layer/Collector/ComposerCollector.php(41): Qossmic\Deptrac\Core\Layer\Collector\ComposerFilesParser->autoloadableNamespacesForRequirements()
#2 /var/www/vendor/qossmic/deptrac/src/Core/Layer/LayerResolver.php(56): Qossmic\Deptrac\Core\Layer\Collector\ComposerCollector->satisfy()
#3 /var/www/vendor/qossmic/deptrac/src/Core/Analyser/DependencyLayersAnalyser.php(51): Qossmic\Deptrac\Core\Layer\LayerResolver->getLayersForReference()
#4 /var/www/vendor/qossmic/deptrac/src/Supportive/Console/Command/AnalyseRunner.php(49): Qossmic\Deptrac\Core\Analyser\DependencyLayersAnalyser->analyse()
#5 /var/www/vendor/qossmic/deptrac/src/Supportive/Console/Command/AnalyseCommand.php(87): Qossmic\Deptrac\Supportive\Console\Command\AnalyseRunner->run()
#6 /var/www/vendor/symfony/console/Command/Command.php(326): Qossmic\Deptrac\Supportive\Console\Command\AnalyseCommand->execute()
#7 /var/www/vendor/symfony/console/Application.php(1063): Symfony\Component\Console\Command\Command->run()
#8 /var/www/vendor/symfony/console/Application.php(320): Symfony\Component\Console\Application->doRunCommand()
#9 /var/www/vendor/qossmic/deptrac/src/Supportive/Console/Application.php(137): Symfony\Component\Console\Application->doRun()
#10 /var/www/vendor/symfony/console/Application.php(174): Qossmic\Deptrac\Supportive\Console\Application->doRun()
#11 /var/www/vendor/qossmic/deptrac/deptrac.php(27): Symfony\Component\Console\Application->run()
#12 {main}
  thrown in /var/www/vendor/qossmic/deptrac/src/Core/Layer/Collector/ComposerFilesParser.php on line 115
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants