Skip to content

Commit 610d91e

Browse files
committed
call parent constructor in SDT and FormField
1 parent 0bd396b commit 610d91e

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

docs/styles.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ Available Font style options:
4545
- ``color``. Font color, e.g. *FF0000*.
4646
- ``doubleStrikethrough``. Double strikethrough, *true* or *false*.
4747
- ``fgColor``. Font highlight color, e.g. *yellow*, *green*, *blue*.
48+
See ``\PhpOffice\PhpWord\Style\Font::FGCOLOR_...`` constants for more values
4849
- ``hint``. Font content type, *default*, *eastAsia*, or *cs*.
4950
- ``italic``. Italic, *true* or *false*.
5051
- ``name``. Font name, e.g. *Arial*.
@@ -54,7 +55,8 @@ Available Font style options:
5455
- ``strikethrough``. Strikethrough, *true* or *false*.
5556
- ``subScript``. Subscript, *true* or *false*.
5657
- ``superScript``. Superscript, *true* or *false*.
57-
- ``underline``. Underline, *dash*, *dotted*, etc.
58+
- ``underline``. Underline, *single*, *dash*, *dotted*, etc.
59+
See ``\PhpOffice\PhpWord\Style\Font::UNDERLINE_...`` constants for more values
5860
- ``lang``. Language, either a language code like *en-US*, *fr-BE*, etc. or an object (or as an array) if you need to set eastAsian or bidirectional languages
5961
See ``\PhpOffice\PhpWord\Style\Language`` class for some language codes.
6062

src/PhpWord/Element/FormField.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ class FormField extends Text
7373
*/
7474
public function __construct($type, $fontStyle = null, $paragraphStyle = null)
7575
{
76+
parent::__construct(null, $fontStyle, $paragraphStyle);
7677
$this->setType($type);
7778
}
7879

src/PhpWord/Element/SDT.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ class SDT extends Text
6868
*/
6969
public function __construct($type, $fontStyle = null, $paragraphStyle = null)
7070
{
71+
parent::__construct(null, $fontStyle, $paragraphStyle);
7172
$this->setType($type);
7273
}
7374

0 commit comments

Comments
 (0)