Argument #2 ($config_storage) must be of type Drupal\Core\Config\CachedStorage, Drupal\wse_config\WseConfigCachedStorage given in Drupal\rules\Drush\Commands\RulesDrushCommands->__construct()

Created on 11 November 2024, 6 months ago

Problem/Motivation

[error] TypeError: Drupal\rules\Drush\Commands\RulesDrushCommands::__construct(): Argument #2 ($config_storage) must be of type Drupal\Core\Config\CachedStorage, Drupal\wse_config\WseConfigCachedStorage given in Drupal\rules\Drush\Commands\RulesDrushCommands->__construct() (line 54 of /app/web/modules/contrib/rules/src/Drush/Commands/RulesDrushCommands.php) #0 [internal function]: Drupal\rules\Drush\Commands\RulesDrushCommands->__construct(Object(Drupal\Core\Config\ConfigFactory), Object(Drupal\wse_config\WseConfigCachedStorage), Object(Drupal\rules\Core\RulesEventManager))

Steps to reproduce

Update to wsw 2.0.0-alpha4 and run drush updb

Proposed resolution

I just ran into this issue now and haven't looked into the details yet, so not sure yet if this should be addressed in rules e.g. by using Drupal\Core\Config\StorageInterface instead or in wse e.g. by extending Drupal\Core\Config\CachedStorage

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Active

Version

2.0

Component

Workspace Config

Created by

🇮🇹Italy thomas.feichter

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

Comments & Activities

Production build 0.71.5 2024