Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/PhpWord/Writer/RTF/Part/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,14 @@
if (method_exists($element, 'getFontStyle')) {
$style = $element->getFontStyle();
$this->registerFontItems($style);
} elseif (method_exists($element, 'getElements')) {
$textRuns = $element->getElements();
foreach ($textRuns as $textRun) {
if (method_exists($textRun, 'getFontStyle')) {
$style = $textRun->getFontStyle();

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.0)

Cannot call method getFontStyle() on class-string|object.

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.2)

Cannot call method getFontStyle() on class-string|object.

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.3)

Cannot call method getFontStyle() on class-string|object.

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (7.2)

Cannot call method getFontStyle() on class-string|object.

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.1)

Cannot call method getFontStyle() on class-string|object.

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (7.4)

Cannot call method getFontStyle() on class-string|object.

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (8.4)

Cannot call method getFontStyle() on class-string|object.

Check failure on line 211 in src/PhpWord/Writer/RTF/Part/Header.php

View workflow job for this annotation

GitHub Actions / PHP Static Analysis (7.3)

Cannot call method getFontStyle() on class-string|object.
$this->registerFontItems($style);
}
}
}
}
}
Expand Down
Loading