Replaced short array syntax with longer form

This commit is contained in:
Jeremy Harris 2017-08-31 09:02:08 -05:00
parent f9f06e68b1
commit 0558c253f6
No known key found for this signature in database
GPG key ID: C90F85CC81D949C8

View file

@ -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);
}