From f6321eb9308f0d06934568434646b540b39b764a Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Thu, 26 Jan 2023 13:18:57 -0500 Subject: [PATCH] getStatus() should be returning a string --- CRM/Core/Session.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CRM/Core/Session.php b/CRM/Core/Session.php index f1edba8947..3f0011cc78 100644 --- a/CRM/Core/Session.php +++ b/CRM/Core/Session.php @@ -431,13 +431,13 @@ class CRM_Core_Session { * @param bool $reset * Should we reset the status variable?. * - * @return string + * @return array * the status message if any */ - public function getStatus($reset = FALSE) { + public function getStatus($reset = FALSE) : array { $this->initialize(); - $status = NULL; + $status = []; if (array_key_exists('status', $this->_session[$this->_key])) { $status = $this->_session[$this->_key]['status']; } -- 2.25.1