From b579007611a74a0003fed42f361aed83ed246cbf Mon Sep 17 00:00:00 2001 From: Roman Syroeshko Date: Sat, 1 Mar 2014 08:53:19 -0800 Subject: [PATCH] https://github.com/PHPOffice/PHPWord/issues/46 Signature of the method was changed. Optional parameter should be on the last position. --- Classes/PHPWord/Template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/PHPWord/Template.php b/Classes/PHPWord/Template.php index 6a113fbe..36270c7c 100755 --- a/Classes/PHPWord/Template.php +++ b/Classes/PHPWord/Template.php @@ -80,10 +80,10 @@ class PHPWord_Template * Applies XSL style sheet to XML template. * * @param DOMDocument &$xslDOMDocument - * @param string $xslOptionsURI * @param array $xslOptions + * @param string $xslOptionsURI = '' */ - public function applyXslStyleSheet(&$xslDOMDocument, $xslOptionsURI = '', $xslOptions = []) + public function applyXslStyleSheet(&$xslDOMDocument, $xslOptions = [], $xslOptionsURI = '') { $processor = new \XSLTProcessor();