mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Replaced short array syntax with longer form
This commit is contained in:
parent
f9f06e68b1
commit
0558c253f6
1 changed files with 2 additions and 2 deletions
|
@ -137,11 +137,11 @@ class SessionComponent extends Component {
|
|||
*/
|
||||
public function setFlash($message, $element = 'default', $params = array(), $key = 'flash') {
|
||||
$messages = (array)CakeSession::read('Message.' . $key);
|
||||
$messages[] = [
|
||||
$messages[] = array(
|
||||
'message' => $message,
|
||||
'element' => $element,
|
||||
'params' => $params,
|
||||
];
|
||||
);
|
||||
CakeSession::write('Message.' . $key, $messages);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue