I'm getting a type error when trying to run drush cached-moderation-state:update-all with Drush 12
TypeError: Drupal\cached_moderation_state\Commands\CachedModerationStateCommands::runBatchInitializeStep(): Argument #4 ($context) must be of type DrushBatchContext, array given
Drush has removed the DrushBatchContext wrapper
https://github.com/drush-ops/drush/pull/5353
Proposed resolution
The type hit should be array, but that may break compatibility with older Drush versions. I think it will be better to remove the type hinting for now
Issue fork cached_moderation_state-3417824
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:
- 3417824-remove-drushbatchcontext-type
changes, plain diff MR !1
Comments
Comment #3
matias commentedComment #6
clayfreemanThanks for your contribution! I went ahead and tagged a patch release for this as well. Should be available for installation shortly.
Comment #7
clayfreeman