1
0
mirror of https://github.com/danog/psalm.git synced 2024-12-02 09:37:59 +01:00

Stable baseline

Fixes vimeo/psalm#10632
This commit is contained in:
Bruce Weirdan 2024-02-01 17:54:46 +01:00
parent 00822074fe
commit 76364ab2cc
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -16,7 +16,6 @@ use function array_merge;
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;
@ -268,11 +267,7 @@ final class ErrorBaseline
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);