Skip to content

Commit c8a8f5b

Browse files
committed
fix: Support Header element within Title elements
We encountered issues with a Word document where this is a valid combination.
1 parent 136f549 commit c8a8f5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PhpWord/Element/AbstractContainer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ private function checkValidity($method)
254254
'Footnote' => ['Section', 'TextRun', 'Cell', 'ListItemRun'],
255255
'Endnote' => ['Section', 'TextRun', 'Cell'],
256256
'PreserveText' => ['Section', 'Header', 'Footer', 'Cell'],
257-
'Title' => ['Section', 'Cell'],
257+
'Title' => ['Section', 'Cell', 'Header'],
258258
'TOC' => ['Section'],
259259
'PageBreak' => ['Section'],
260260
'Chart' => ['Section', 'Cell'],

0 commit comments

Comments
 (0)