diff --git a/CRM/Core/Session.php b/CRM/Core/Session.php index f1edba894758..3f0011cc78cc 100644 --- a/CRM/Core/Session.php +++ b/CRM/Core/Session.php @@ -431,13 +431,13 @@ public function debug($all = 1) { * @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']; }