diff --git a/Classes/PHPWord/Template.php b/Classes/PHPWord/Template.php index 28c77868..425bd413 100755 --- a/Classes/PHPWord/Template.php +++ b/Classes/PHPWord/Template.php @@ -80,10 +80,10 @@ class PHPWord_Template * Applies XSL style sheet to template's parts * * @param DOMDocument &$xslDOMDocument - * @param array $xslOptions = [] + * @param array $xslOptions = array() * @param string $xslOptionsURI = '' */ - public function applyXslStyleSheet(&$xslDOMDocument, $xslOptions = [], $xslOptionsURI = '') + public function applyXslStyleSheet(&$xslDOMDocument, $xslOptions = array(), $xslOptionsURI = '') { $processor = new \XSLTProcessor(); diff --git a/Tests/PHPWord/TemplateTest.php b/Tests/PHPWord/TemplateTest.php index 99d977b0..34ef6cb1 100644 --- a/Tests/PHPWord/TemplateTest.php +++ b/Tests/PHPWord/TemplateTest.php @@ -36,7 +36,7 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl')) ); - $template->applyXslStyleSheet($xslDOMDocument, [1 => 'somevalue']); + $template->applyXslStyleSheet($xslDOMDocument, array(1 => 'somevalue')); } /**