Skip to content

Commit

Permalink
Merge pull request #25441 from MegaphoneJon/status-is-a-string
Browse files Browse the repository at this point in the history
getStatus() should be returning a string
  • Loading branch information
demeritcowboy authored Feb 20, 2023
2 parents 78edb09 + f6321eb commit 630bc45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CRM/Core/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand Down

0 comments on commit 630bc45

Please sign in to comment.