TypeError: Drupal\orange_dam\Commands\OrangeDamCommands::displayMigrationQueueListing():

Created on 26 July 2023, 11 months ago
Updated 27 July 2023, 11 months ago

Problem/Motivation

The queue content by type drush command works, but then throws an exception when it does its reporting.

Steps to reproduce

Run orange-dam:queue-content-by-type and see the error.

[error]  TypeError: Drupal\orange_dam\Commands\OrangeDamCommands::displayMigrationQueueListing(): Return value must be of type array, none returned in Drupal\orange_dam\Commands\OrangeDamCommands->displayMigrationQueueListing() (line 981 of /app/docroot/modules/contrib/orange_dam/src/Commands/OrangeDamCommands.php) #0 /app/docroot/modules/contrib/orange_dam/src/Commands/OrangeDamCommands.php(188): Drupal\orange_dam\Commands\OrangeDamCommands->displayMigrationQueueListing(Array)
#1 [internal function]: Drupal\orange_dam\Commands\OrangeDamCommands->queueContentByType(Array)
#2 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(257): call_user_func_array(Array, Array)
#3 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(212): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#4 /app/vendor/consolidation/annotated-command/src/CommandProcessor.php(176): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /app/vendor/consolidation/annotated-command/src/AnnotatedCommand.php(390): Consolidation\AnnotatedCommand\CommandProcessor->process(Object(Symfony\Component\Console\Output\ConsoleOutput), Array, Array, Object(Consolidation\AnnotatedCommand\CommandData))
#6 /app/vendor/symfony/console/Command/Command.php(255): Consolidation\AnnotatedCommand\AnnotatedCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 /app/vendor/symfony/console/Application.php(1039): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#8 /app/vendor/symfony/console/Application.php(275): Symfony\Component\Console\Application->doRunCommand(Object(Consolidation\AnnotatedCommand\AnnotatedCommand), Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#9 /app/vendor/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#10 /app/vendor/drush/drush/src/Runtime/Runtime.php(124): Symfony\Component\Console\Application->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#11 /app/vendor/drush/drush/src/Runtime/Runtime.php(51): Drush\Runtime\Runtime->doRun(Array, Object(Symfony\Component\Console\Output\ConsoleOutput))
#12 /app/vendor/drush/drush/drush.php(77): Drush\Runtime\Runtime->run(Array)
#13 /app/vendor/drush/drush/drush(4): require('/app/vendor/dru...')
#14 /app/vendor/bin/drush(120): include('/app/vendor/dru...')
#15 {main}.

Proposed resolution

Fix the return type.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: outdated

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States adamzimmermann

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @adamzimmermann
  • πŸ‡ΊπŸ‡ΈUnited States adamzimmermann
  • Status changed to Postponed: needs info 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States adamzimmermann

    protected function displayMigrationQueueListing(array $tags = []): void {

    @apotek what branch did you see this on? I'm wondering if you just need to use the latest code.

  • Status changed to Closed: outdated 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States apotek

    > @apotek what branch did you see this on? I'm wondering if you just need to use the latest code.

    I saw this on 1.x but this is a user error on my part. Closing.

Production build 0.69.0 2024