Skip to content

Commit e2ea1ee

Browse files
author
Roman Syroeshko
committed
Fixed tests.
1 parent 3f1e0ac commit e2ea1ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PhpWord/Writer/RTF/Element/AbstractElement.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ abstract class AbstractElement extends HTMLAbstractElement
5050
*/
5151
private $paragraphStyle;
5252

53-
public function __construct(AbstractWriter $parentWriter, Element $element, $withoutP)
53+
public function __construct(AbstractWriter $parentWriter, Element $element, $withoutP = false)
5454
{
5555
parent::__construct($parentWriter, $element, $withoutP);
5656

@@ -126,7 +126,7 @@ protected function writeText($text)
126126
if (Settings::isOutputEscapingEnabled()) {
127127
return $this->escaper->escape($text);
128128
} else {
129-
return CommonText::toUnicode($text);
129+
return CommonText::toUnicode($text); // todo: replace with `return $text;` later.
130130
}
131131
}
132132

0 commit comments

Comments
 (0)