Argument 2 passed to StorageReplaceDataWrapper::replaceData() must be of the type array, bool given

Created on 13 January 2021, over 4 years ago
Updated 22 February 2023, about 2 years ago

When doing an import, I saw this:

[info] Enforced config views.view.submanager_staff_workload has changed: importing.
[error] TypeError: Argument 2 passed to Drupal\config\StorageReplaceDataWrapper::replaceData() must be of the type array, bool given, called in /app/web/modules/contrib/config_enforce/src/ConfigImporter.php on line 37 in Drupal\config\StorageReplaceDataWrapper->replaceData() (line 198 of /app/web/core/modules/config/src/StorageReplaceDataWrapper.php) #0 /app/web/modules/contrib/config_enforce/src/ConfigImporter.php(37): Drupal\config\StorageReplaceDataWrapper->replaceData('block.block.sub...', false)
[...]

The problem seems to be that FileStorage::decode() can return FALSE, and CE doesn't allow for this.

Suggested fix forthcoming.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇦Canada colan Toronto 🇨🇦

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024