From 65691836befd5f7abfcb2846a06bf532d543eb3c Mon Sep 17 00:00:00 2001 From: mark_story Date: Thu, 28 May 2015 17:39:52 -0400 Subject: [PATCH] Fix syntax errors in PHP <5.4 --- lib/Cake/Controller/Component/RequestHandlerComponent.php | 2 +- lib/Cake/Test/Case/Utility/XmlTest.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Controller/Component/RequestHandlerComponent.php b/lib/Cake/Controller/Component/RequestHandlerComponent.php index 75bf26486..271b56773 100644 --- a/lib/Cake/Controller/Component/RequestHandlerComponent.php +++ b/lib/Cake/Controller/Component/RequestHandlerComponent.php @@ -229,7 +229,7 @@ class RequestHandlerComponent extends Component { */ public function convertXml($xml) { try { - $xml = Xml::build($xml, ['readFile' => false]); + $xml = Xml::build($xml, array('readFile' => false)); if (isset($xml->data)) { return Xml::toArray($xml->data); } diff --git a/lib/Cake/Test/Case/Utility/XmlTest.php b/lib/Cake/Test/Case/Utility/XmlTest.php index d97014445..614a22a05 100644 --- a/lib/Cake/Test/Case/Utility/XmlTest.php +++ b/lib/Cake/Test/Case/Utility/XmlTest.php @@ -175,7 +175,7 @@ class XmlTest extends CakeTestCase { */ public function testBuildFromFileWhenDisabled() { $xml = CAKE . 'Test' . DS . 'Fixture' . DS . 'sample.xml'; - $obj = Xml::build($xml, ['readFile' => false]); + $obj = Xml::build($xml, array('readFile' => false)); } /** @@ -186,7 +186,7 @@ class XmlTest extends CakeTestCase { */ public function testBuildFromUrlWhenDisabled() { $xml = 'http://www.google.com'; - $obj = Xml::build($xml, ['readFile' => false]); + $obj = Xml::build($xml, array('readFile' => false)); } /**