Permalink
Browse files

Fix syntax errors in PHP <5.4

  • Loading branch information...
markstory committed May 28, 2015
1 parent b66c1ce commit 65691836befd5f7abfcb2846a06bf532d543eb3c
@@ -229,7 +229,7 @@ public function startup(Controller $controller) {
*/
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);
}
@@ -175,7 +175,7 @@ public function testBuild() {
*/
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 @@ public function testBuildFromFileWhenDisabled() {
*/
public function testBuildFromUrlWhenDisabled() {
$xml = 'http://www.google.com';
- $obj = Xml::build($xml, ['readFile' => false]);
+ $obj = Xml::build($xml, array('readFile' => false));
}
/**

4 comments on commit 6569183

@ravage84

This comment has been minimized.

Show comment
Hide comment
@josegonzalez

This comment has been minimized.

Show comment
Hide comment
@markstory

This comment has been minimized.

Show comment
Hide comment
@markstory

markstory May 29, 2015

Member

We all make mistakes sometimes. I just get to do it in front of everyone 😄

Member

markstory replied May 29, 2015

We all make mistakes sometimes. I just get to do it in front of everyone 😄

@ADmad

This comment has been minimized.

Show comment
Hide comment
@ADmad

ADmad May 29, 2015

Member

@ravage84 I am still not convinced he's human. He does these mistakes from time to time on purpose to make us think he's human.

Member

ADmad replied May 29, 2015

@ravage84 I am still not convinced he's human. He does these mistakes from time to time on purpose to make us think he's human.

Please sign in to comment.