Compatibility with PHP 5.3 was fixed.
This commit is contained in:
parent
27b7d67cc9
commit
fb5ef658df
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
|
|
@ -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'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue