Skip to content

Commit

Permalink
Stable baseline
Browse files Browse the repository at this point in the history
Fixes #10632
  • Loading branch information
weirdan committed Feb 1, 2024
1 parent 0082207 commit 76364ab
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Psalm/ErrorBaseline.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
use function array_reduce;
use function array_values;
use function get_loaded_extensions;
use function htmlspecialchars;
use function implode;
use function ksort;
use function min;
Expand Down Expand Up @@ -268,11 +267,7 @@ private static function writeToFile(
foreach ($existingIssueType['s'] as $selection) {
$codeNode = $baselineDoc->createElement('code');
$textContent = trim($selection);
if ($textContent !== htmlspecialchars($textContent)) {
$codeNode->appendChild($baselineDoc->createCDATASection($textContent));
} else {
$codeNode->textContent = trim($textContent);
}
$codeNode->appendChild($baselineDoc->createCDATASection($textContent));
$issueNode->appendChild($codeNode);
}
$fileNode->appendChild($issueNode);
Expand Down

0 comments on commit 76364ab

Please sign in to comment.