Skip to content

Commit 0381386

Browse files
authored
Merge pull request #110 from frugan-dev/master
fix: Cannot assign null to property DOMNode::* of type string
2 parents f8f09f1 + 0c27c54 commit 0381386

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/voku/helper/AbstractSimpleHtmlDom.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,9 @@ public function __set($name, $value)
180180
$value = (string)$value;
181181
}
182182

183-
return $this->node->{$nameOrig} = $value;
183+
if (!is_null($value)) {
184+
return $this->node->{$nameOrig} = $value;
185+
}
184186
}
185187

186188
return $this->setAttribute($name, $value);

0 commit comments

Comments
 (0)