Skip to content

Commit

Permalink
Avoid using empty as psalm bitches about it
Browse files Browse the repository at this point in the history
  • Loading branch information
theseer committed Jan 22, 2024
1 parent 98075da commit b85d9de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/serializer/HTMLSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ private function walk(XMLWriter $writer, DOMNode $node, array $knownPrefixes): v
return;
}

if ($node->namespaceURI === self::HTMLNS || empty($node->namespaceURI)) {
if ($node->namespaceURI === self::HTMLNS || $node->namespaceURI === '' || $node->namespaceURI === null) {
$writer->startElement($node->localName);

if ($this->isFirst) {
Expand Down

0 comments on commit b85d9de

Please sign in to comment.