Skip to content

Commit 91416e4

Browse files
XMLWriter ReturnTypeWillChange fix
add #[\ReturnTypeWillChange] Attribute to the function writeAttribute (php 8.1 deprecate warning)
1 parent fc18246 commit 91416e4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/PhpWord/Shared/XMLWriter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ public function writeAttributeIf($condition, $attribute, $value)
171171
* @param mixed $value
172172
* @return bool
173173
*/
174+
#[\ReturnTypeWillChange]
174175
public function writeAttribute($name, $value)
175176
{
176177
if (is_float($value)) {

0 commit comments

Comments
 (0)