From bbdc693f1a9598e12d57cf1ab3e2d47fd919f1dd Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 11 Oct 2019 05:43:46 +1100 Subject: [PATCH] Fix merge hook arrays --- CRM/Utils/Hook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/Hook.php b/CRM/Utils/Hook.php index 743a0c4d83cd..3993c4349ae8 100644 --- a/CRM/Utils/Hook.php +++ b/CRM/Utils/Hook.php @@ -189,7 +189,7 @@ public function invoke( } else { // We need to ensure tht we will still run known bootstrap related hooks even if the container is not booted. - $prebootContainerHooks = $upgradeFriendlyHooks + ['civicrm_entityTypes', 'civicrm_config']; + $prebootContainerHooks = array_merge($upgradeFriendlyHooks, ['civicrm_entityTypes', 'civicrm_config']); if (!\Civi\Core\Container::isContainerBooted() && !in_array($fnSuffix, $prebootContainerHooks)) { return; }