Problem/Motivation
(Note: this is on the new 3.0-alpha1).
$ drush upgrade_status:analyze --all --ignore-contrib
[error] Error: Call to a member function getType() on string in Drupal\upgrade_status\Commands\UpgradeStatusCommands->analyze() (line 138 of /app/web/modules/contrib/upgrade_status/src/Commands/UpgradeStatusCommands.php) #0 [internal function]: Drupal\upgrade_status\Commands\UpgradeStatusCommands->analyze(Object(Drupal\Core\Extension\Extension), Array)
#1 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#2 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#3 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(302): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /app/vendor/symfony/console/Application.php(1005): Symfony\Component\Console\Command\Command->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /app/vendor/symfony/console/Application.php(255): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /app/vendor/symfony/console/Application.php(148): Symfony\Component\Console\Application->doRun(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /app/vendor/drush/drush/src/Runtime/Runtime.php(118): Symfony\Component\Console\Application->run(Object(Drush\Symfony\DrushArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /app/vendor/drush/drush/src/Runtime/Runtime.php(49): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /app/vendor/drush/drush/drush.php(72): Drush\Runtime\Runtime->run(Array)
#12 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#13 {main}.
Steps to reproduce
Run the above Drush command.
Proposed resolution
Fix (sorry for no being more elaborate).
Remaining tasks
Fix.
User interface changes
None.
API changes
None.
Data model changes
None.
Comments
Comment #2
gábor hojtsyThe drush interface was not yet updated to the new project collection API. Updating here. Thanks for the issue and testing.
Comment #4
gábor hojtsyWorked for --all, --ignore-uninstalled, specific projects, etc. as I tested. Also tested with both the analyze command and the checkstyle command. Should be fine hopefully.