Problem/Motivation

The following commit broke this command.

vendor/bin/drush key:provider-list --storage-method=file
[08-Jul-2024 13:11:22 UTC] TypeError: Drush\Utils\StringUtils::interpolate(): Argument #2 ($context) must be of type array, int given, called in /mnt/files/local_mount/build/vendor/drush/drush/includes/output.inc on line 23 in /mnt/files/local_mount/build/vendor/drush/drush/src/Utils/StringUtils.php on line 44 #0 /mnt/files/local_mount/build/vendor/drush/drush/includes/output.inc(23): Drush\Utils\StringUtils::interpolate()
#1 /mnt/files/local_mount/build/web/modules/contrib/key/src/Commands/KeyCommands.php(317): dt()
#2 [internal function]: Drupal\key\Commands\KeyCommands->providerList()
#3 /mnt/files/local_mount/build/vendor/consolidation/annotated-command/src/CommandProcessor.ph

Steps to reproduce

Run the command.

Proposed resolution

Remove the string argument passed to dt() - copy-pasting bug.

Remaining tasks

Needs test? (Now that https://git.drupalcode.org/project/key/-/commit/74d0d36d49a199edba0380b6... was landed.)

User interface changes

API changes

Data model changes

Issue fork key-3459952

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

mxr576 created an issue. See original summary.

mxr576’s picture

Status: Active » Needs review
joseph.olstad’s picture

Seems good

mxr576’s picture

Could you RTBC this then? Thanks!

rlhawk’s picture

Status: Needs review » Reviewed & tested by the community

  • rlhawk committed 4e0f58a3 on 8.x-1.x authored by mxr576
    Issue #3459952 by mxr576, joseph.olstad, rlhawk: drush key:provider-list...
rlhawk’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

joseph.olstad’s picture

Please tag a release with this fix!