10.3.6 patch error: TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 545 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php)

Created on 6 October 2024, 6 months ago

Problem/Motivation

Updated to latest Drupal 10.3.6, now it was impossible to implement patch #3343165
This is a follow up of https://www.drupal.org/project/block_class/issues/3343165 🐛 TypeError: array_keys(): Argument #1 ($array) must be of type array, null given in array_keys() (line 545 of core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php) Fixed with Drupal 10.3.6

Steps to reproduce

Update to drupal 10.3.6 with composer, use patch
"#3343165: TypeError: array_keys(): Argument #1 ($array) must be of type array": " https://www.drupal.org/files/issues/2023-07-11/third_party_settings_3343... "
in composer.json file

Result:
Could not apply patch! Skipping. The error was: Cannot apply patch https://www.drupal.org/files/issues/2023-07-11/third_party_settings_3343165.patch

Proposed resolution

Improve code and patch to be able to work also with Drupal 10.3.6.

greetings,

🐛 Bug report
Status

Active

Version

3.0

Component

Compatibility

Created by

🇳🇱Netherlands Summit

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

Comments & Activities

Production build 0.71.5 2024