Skip to content

Commit 12ad6fa

Browse files
committed
adapt code for php 5.3
1 parent 623bd99 commit 12ad6fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/PhpWord/TemplateProcessorTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,8 @@ public function getVariableCountCountsHowManyTimesEachPlaceholderIsPresent()
248248
$templatePath = 'test.docx';
249249
$objWriter->save($templatePath);
250250

251-
$variableCount = (new TemplateProcessor($templatePath))->getVariableCount();
251+
$templateProcessor = new TemplateProcessor($templatePath);
252+
$variableCount = $templateProcessor->getVariableCount();
252253
unlink($templatePath);
253254

254255
$this->assertEquals(

0 commit comments

Comments
 (0)