Skip to content

Commit

Permalink
fix: Support Header element within Title elements
Browse files Browse the repository at this point in the history
We encountered issues with a Word document where this is a valid combination.
  • Loading branch information
SpraxDev committed Sep 13, 2024
1 parent f0ec497 commit b06fca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PhpWord/Element/AbstractContainer.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ private function checkValidity($method)
'Footnote' => ['Section', 'TextRun', 'Cell', 'ListItemRun'],
'Endnote' => ['Section', 'TextRun', 'Cell'],
'PreserveText' => ['Section', 'Header', 'Footer', 'Cell'],
'Title' => ['Section', 'Cell'],
'Title' => ['Section', 'Cell', 'Header'],
'TOC' => ['Section'],
'PageBreak' => ['Section'],
'Chart' => ['Section', 'Cell'],
Expand Down

0 comments on commit b06fca3

Please sign in to comment.