Skip to content

Commit 7eea2e5

Browse files
committed
use array() instead of [] to support PHP 5.3
1 parent f64f7bd commit 7eea2e5

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tests/PhpPresentation/Tests/Writer/PowerPoint2007/SchemaTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -68,17 +68,17 @@ public function testSchema(PhpPresentation $presentation)
6868
// http://schemas.openxmlformats.org/ to http://purl.oclc.org/ooxml/
6969
// We need to use the http://purl.oclc.org/ooxml/ namespace to validate
7070
// the xml against the current schema
71-
$xmlSource = str_replace([
71+
$xmlSource = str_replace(array(
7272
"http://schemas.openxmlformats.org/drawingml/2006/main",
7373
"http://schemas.openxmlformats.org/drawingml/2006/chart",
7474
"http://schemas.openxmlformats.org/officeDocument/2006/relationships",
7575
"http://schemas.openxmlformats.org/presentationml/2006/main",
76-
], [
76+
), array(
7777
"http://purl.oclc.org/ooxml/drawingml/main",
7878
"http://purl.oclc.org/ooxml/drawingml/chart",
7979
"http://purl.oclc.org/ooxml/officeDocument/relationships",
8080
"http://purl.oclc.org/ooxml/presentationml/main",
81-
], $xmlSource);
81+
), $xmlSource);
8282

8383
$dom->loadXML($xmlSource);
8484
$dom->schemaValidate(__DIR__ . '/../../../../resources/schema/ooxml/pml.xsd');
@@ -92,10 +92,10 @@ public function testSchema(PhpPresentation $presentation)
9292

9393
public function pptProvider()
9494
{
95-
return [
96-
[$this->generatePresentation01()],
97-
[$this->generatePresentation02()],
98-
];
95+
return array(
96+
array($this->generatePresentation01()),
97+
array($this->generatePresentation02()),
98+
);
9999
}
100100

101101
/**

0 commit comments

Comments
 (0)