Skip to content

Commit 59573f8

Browse files
committed
Fix #1205
1 parent cc8572c commit 59573f8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vendor/phpoffice/common/src/Common/XMLWriter.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,12 @@ public function writeAttributeIf($condition, $attribute, $value)
172172
* @param mixed $value
173173
* @return bool
174174
*/
175-
public function writeAttribute($name, $value)
175+
public function writeAttribute($name, $value): bool
176176
{
177177
if (is_float($value)) {
178178
$value = json_encode($value);
179179
}
180+
if (is_null($value)) return true;
180181
return parent::writeAttribute($name, $value);
181182
}
182183
}

0 commit comments

Comments
 (0)