Skip to content

Commit 1ab2357

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

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/PhpWord/Shared/XMLWriter.php

+1-5
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
namespace PhpOffice\PhpWord\Shared;
2020

2121
use Exception;
22-
use ReturnTypeWillChange;
2322

2423
/**
2524
* XMLWriter.
@@ -173,11 +172,8 @@ public function writeAttributeIf($condition, $attribute, $value): void
173172
/**
174173
* @param string $name
175174
* @param mixed $value
176-
*
177-
* @return bool
178175
*/
179-
#[ReturnTypeWillChange]
180-
public function writeAttribute($name, $value)
176+
public function writeAttribute($name, $value): bool
181177
{
182178
if (is_float($value)) {
183179
$value = json_encode($value);

0 commit comments

Comments
 (0)