Skip to content

Commit 947a949

Browse files
committed
Set writeAttribute return type
1 parent 6ca8c9f commit 947a949

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/PhpWord/Shared/XMLWriter.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,7 @@ public function writeAttributeIf($condition, $attribute, $value): void
176176
*
177177
* @return bool
178178
*/
179-
#[ReturnTypeWillChange]
180-
public function writeAttribute($name, $value)
179+
public function writeAttribute($name, $value): bool
181180
{
182181
if (is_float($value)) {
183182
$value = json_encode($value);

0 commit comments

Comments
 (0)