From 0558c253f61dc1adb6d1c4f9c83278a0fedfa4d7 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 31 Aug 2017 09:02:08 -0500 Subject: [PATCH] Replaced short array syntax with longer form --- lib/Cake/Controller/Component/SessionComponent.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Controller/Component/SessionComponent.php b/lib/Cake/Controller/Component/SessionComponent.php index f66f5be62..4057885ca 100644 --- a/lib/Cake/Controller/Component/SessionComponent.php +++ b/lib/Cake/Controller/Component/SessionComponent.php @@ -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); }