mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Fix syntax errors in PHP <5.4
This commit is contained in:
parent
b66c1ce53c
commit
65691836be
2 changed files with 3 additions and 3 deletions
|
@ -229,7 +229,7 @@ class RequestHandlerComponent extends Component {
|
||||||
*/
|
*/
|
||||||
public function convertXml($xml) {
|
public function convertXml($xml) {
|
||||||
try {
|
try {
|
||||||
$xml = Xml::build($xml, ['readFile' => false]);
|
$xml = Xml::build($xml, array('readFile' => false));
|
||||||
if (isset($xml->data)) {
|
if (isset($xml->data)) {
|
||||||
return Xml::toArray($xml->data);
|
return Xml::toArray($xml->data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -175,7 +175,7 @@ class XmlTest extends CakeTestCase {
|
||||||
*/
|
*/
|
||||||
public function testBuildFromFileWhenDisabled() {
|
public function testBuildFromFileWhenDisabled() {
|
||||||
$xml = CAKE . 'Test' . DS . 'Fixture' . DS . 'sample.xml';
|
$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() {
|
public function testBuildFromUrlWhenDisabled() {
|
||||||
$xml = 'http://www.google.com';
|
$xml = 'http://www.google.com';
|
||||||
$obj = Xml::build($xml, ['readFile' => false]);
|
$obj = Xml::build($xml, array('readFile' => false));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue