getStatus() should be returning a string
authorJon Goldberg <jon@megaphonetech.com>
Thu, 26 Jan 2023 18:18:57 +0000 (13:18 -0500)
committerJon Goldberg <jon@megaphonetech.com>
Mon, 20 Feb 2023 17:21:23 +0000 (12:21 -0500)
CRM/Core/Session.php

index f1edba894758545daf0f0f4441c1ab8b1e2e7b87..3f0011cc78cc8ddfa7689226d19e8db1064fa33c 100644 (file)
@@ -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'];
     }