Skip to content

Commit e427311

Browse files
GrotaxCopilot
andauthored
Use $node->getLink() === null instead of is_null($node->getLink()) for consistency with modern PHP practices and better readability.
Co-authored-by: Copilot <[email protected]>
1 parent e83e810 commit e427311

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/FeedIo/Rule/PublicId.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function setProperty(NodeInterface $node, \DOMElement $element): void
2020
$node->setPublicId($element->nodeValue);
2121
if ($element->nodeName === 'guid'
2222
&& $element->getAttribute('isPermaLink') === 'true'
23-
&& is_null($node->getLink())) {
23+
&& $node->getLink() === null) {
2424
$node->setLink($element->nodeValue);
2525
}
2626
}

0 commit comments

Comments
 (0)