In some scenarios, e.g. if a module has not been installed correctly, the config may be empty.

If that happens, then a fatal error occurs:
TypeError: Argument 2 passed to Drupal\spalp\Event\SpalpConfigAlterEvent::__construct() must be of the type array, null give

CommentFileSizeAuthor
#3 spalp-empty-config-3138111-3.patch1.19 KBmalcomio

Comments

malcomio created an issue. See original summary.

malcomio’s picture

Title: If configuration is empty, » TypeError If configuration is empty for a module
malcomio’s picture

Status: Active » Needs review
StatusFileSize
new1.19 KB

  • malcomio committed c9f38c2 on 8.x-1.x
    Issue #3138111 by malcomio: TypeError If configuration is empty for a...
malcomio’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.