Skip to content

Commit 0857f36

Browse files
committed
Add TextRun as container for CheckBox
1 parent 16495a0 commit 0857f36

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Element/AbstractContainer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private function checkValidity($method)
207207
'ListItem' => array('Section', 'Header', 'Footer', 'Cell', 'TextBox'),
208208
'ListItemRun' => array('Section', 'Header', 'Footer', 'Cell', 'TextBox'),
209209
'Table' => array('Section', 'Header', 'Footer', 'Cell', 'TextBox'),
210-
'CheckBox' => array('Section', 'Header', 'Footer', 'Cell'),
210+
'CheckBox' => array('Section', 'Header', 'Footer', 'Cell', 'TextRun'),
211211
'TextBox' => array('Section', 'Header', 'Footer', 'Cell'),
212212
'Footnote' => array('Section', 'TextRun', 'Cell'),
213213
'Endnote' => array('Section', 'TextRun', 'Cell'),

0 commit comments

Comments
 (0)