Skip to content

Commit 644625c

Browse files
authored
Update Border.php
1 parent b30a6c1 commit 644625c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PhpWord/Writer/RTF/Style/Border.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Border extends AbstractStyle
3232
*
3333
* @var string
3434
*/
35-
private $type;
35+
private $type = 'paragraph';
3636

3737
/**
3838
* Write style.
@@ -137,7 +137,6 @@ private function writeSide($side, $width, $color, $style, $space)
137137
}
138138

139139
$content = '';
140-
$type = 'paragraph';
141140
if (isset($types[$this->type])) {
142141
if (in_array($types[$this->type], ['header', 'footer', 'font'])) {
143142
$content .= $types[$this->type]; // header, footer, and character borders cannot vary by side

0 commit comments

Comments
 (0)