Compatibility with PHP 5.3 was fixed.
This commit is contained in:
Roman Syroeshko 2014-03-02 20:08:02 +04:00
parent 27b7d67cc9
commit fb5ef658df
2 changed files with 3 additions and 3 deletions

View File

@ -80,10 +80,10 @@ class PHPWord_Template
* Applies XSL style sheet to template's parts * Applies XSL style sheet to template's parts
* *
* @param DOMDocument &$xslDOMDocument * @param DOMDocument &$xslDOMDocument
* @param array $xslOptions = [] * @param array $xslOptions = array()
* @param string $xslOptionsURI = '' * @param string $xslOptionsURI = ''
*/ */
public function applyXslStyleSheet(&$xslDOMDocument, $xslOptions = [], $xslOptionsURI = '') public function applyXslStyleSheet(&$xslDOMDocument, $xslOptions = array(), $xslOptionsURI = '')
{ {
$processor = new \XSLTProcessor(); $processor = new \XSLTProcessor();

View File

@ -36,7 +36,7 @@ class PHPWord_TemplateTest extends \PHPUnit_Framework_TestCase
array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl')) array(\PHPWORD_TESTS_DIR_ROOT, '_files', 'xsl', 'passthrough.xsl'))
); );
$template->applyXslStyleSheet($xslDOMDocument, [1 => 'somevalue']); $template->applyXslStyleSheet($xslDOMDocument, array(1 => 'somevalue'));
} }
/** /**