mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +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) {
|
||||
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 @@ 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));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue