From 674e41c7944843653213d79730631ae2fcef0ffd Mon Sep 17 00:00:00 2001 From: Tim Otten <totten@civicrm.org> Date: Tue, 20 Feb 2024 14:44:22 -0800 Subject: [PATCH] (dev/core#5017) - Angular Manager / PHP 7.3 --- Civi/Angular/Manager.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Civi/Angular/Manager.php b/Civi/Angular/Manager.php index ee5c65c4631..ebe59aadd24 100644 --- a/Civi/Angular/Manager.php +++ b/Civi/Angular/Manager.php @@ -95,7 +95,9 @@ class Manager { foreach ($angularModules as $module => $info) { // This property must be an array. If null, set to the historical default of ['civicrm/a'] // (historical default preserved for backward-compat reasons, but a better default would be the more common value of []). - $angularModules[$module]['basePages'] ??= ['civicrm/a']; + if (!isset($angularModules[$module]['basePages'])) { + $angularModules[$module]['basePages'] = ['civicrm/a']; + } if (!empty($info['settings'])) { \CRM_Core_Error::deprecatedWarning(sprintf('The Angular file "%s" from extension "%s" must be updated to use "settingsFactory" instead of "settings". See https://github.com/civicrm/civicrm-core/pull/19052', $info['module'], $info['ext'])); } -- GitLab