From fc57dee72ffa393a4ba3b94cc51249082c1891e9 Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 28 Jan 2016 21:50:56 -0500 Subject: [PATCH] Fix error in PHP 5.3 --- .../Test/Case/Controller/Component/SecurityComponentTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php index 112e5ec84..e579b6c05 100644 --- a/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SecurityComponentTest.php @@ -498,10 +498,10 @@ class SecurityComponentTest extends CakeTestCase { $fields = 'an-invalid-token'; $unlocked = ''; - $this->Controller->request->data = [ + $this->Controller->request->data = array( 'Model' => array('username' => 'nate', 'password' => 'foo', 'valid' => '0'), '_Token' => compact('fields', 'unlocked') - ]; + ); $this->assertFalse($this->Controller->failed, 'Should not be failed yet'); $this->Controller->Security->startup($this->Controller); $this->assertTrue($this->Controller->failed, 'Should fail because of validatePost.');