- Issue created by @Pradip Mehta
- Status changed to Closed: duplicate
11 months ago 4:33pm 2 May 2024 - 🇮🇳India Pradip Mehta Delhi
duplicate Issue #3343165 by VladimirAus, RenatoG: TypeError: array_keys(): Argument #1 added
TypeError: array_merge(): Argument #1 must be of type array, null given in array_merge() (line 967 of modules/contrib/block_class/src/Service/BlockClassHelperService.php).
Error is happing when saving the block and providing configuration under the page restriction
path: modules/contrib/block_class/src/Service/BlockClassHelperService.php
line number 948 we need to add [] in case of null like this: $third_party_settings = $form_state->getValue('class')['third_party_settings'] ?? [];
Create pull requests and review
Closed: duplicate
2.0
Code
duplicate Issue #3343165 by VladimirAus, RenatoG: TypeError: array_keys(): Argument #1 added