Skip to content

Commit

Permalink
Merge pull request #9354 from othercorey/fix-php74
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan authored Feb 20, 2023
2 parents 9e0dd5a + c23de49 commit 471a8c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/ErrorBaseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ private static function writeToFile(
$codeNode = $baselineDoc->createElement('code');
$textContent = trim($selection);
if ($textContent !== htmlspecialchars($textContent)) {
$codeNode->append($baselineDoc->createCDATASection($textContent));
$codeNode->appendChild($baselineDoc->createCDATASection($textContent));
} else {
$codeNode->textContent = trim($textContent);
}
Expand Down

0 comments on commit 471a8c6

Please sign in to comment.