From fb5ef658dfb37832ac244e22770876e3b10c5b25 Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Sun, 2 Mar 2014 20:08:02 +0400 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/46 Compatibility with PHP 5.3 was fixed. --- Classes/PHPWord/Template.php | 4 ++-- Tests/PHPWord/TemplateTest.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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')); } /**