From 3c21f4a8aff965b16d22554974808026942258ca Mon Sep 17 00:00:00 2001 From: "Larry E. Masters" Date: Mon, 28 Dec 2015 11:18:03 -0500 Subject: [PATCH] Fixes session_write_close(): Skipping numeric key 0 error --- .../Test/Case/Controller/Component/SessionComponentTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php index fa7bae08b..b885dfcfe 100644 --- a/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php +++ b/lib/Cake/Test/Case/Controller/Component/SessionComponentTest.php @@ -115,7 +115,7 @@ class SessionComponentTest extends CakeTestCase { */ public function setUp() { parent::setUp(); - $_SESSION = null; + $_SESSION = array(); $this->ComponentCollection = new ComponentCollection(); }