Skip to content

Commit a081351

Browse files
committed
Another Php8.5 Deprecation
1 parent 1fc73d4 commit a081351

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/PhpWord/Writer/RTF/Style/Section.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,7 @@ public function write()
7575
'evenPage' => '\sbkeven',
7676
'oddPage' => '\sbkodd',
7777
];
78-
if (isset($breakTypes[$style->getBreakType()])) {
79-
$content .= $breakTypes[$style->getBreakType()];
80-
}
78+
$content .= $breakTypes[(string) $style->getBreakType()] ?? '';
8179

8280
// Vertical Align
8381
$verticalAlign = [

0 commit comments

Comments
 (0)