- Issue created by @Juanjol
- @juanjol opened merge request.
- Status changed to Needs review
about 1 year ago 10:41am 1 March 2024 - Status changed to Fixed
12 months ago 4:16pm 14 April 2024 Automatically closed - issue fixed for 2 weeks with no activity.
After upgrading to config_ignore 3 and trying to deploy to a site with config_ignore enabled where the configuration is still empty (ignored_config_entities is an empty array) the hook update 8302 fails with the following error:
Argument #2 ($data) must be of type array, null given, called in /var/www/html/web/modules/contrib/config_ignore/config_ignore/config_ignore.install on line 39
After checking, it seems that it does not check if $config->get('ignored_config_entities') returns an array or null. I propose a simple solution in MR.
- Update code from 2.x to 3.x with the module enabled with the default config
- Run drush updatedb
Check If $config->get('ignored_config_entities') returns null, and return an empty array in that case.
Fixed
3.0
Code
Automatically closed - issue fixed for 2 weeks with no activity.