mirror of
https://github.com/danog/psalm.git
synced 2024-12-02 09:37:59 +01:00
parent
00822074fe
commit
76364ab2cc
@ -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);
|
||||
}
|
||||
$issueNode->appendChild($codeNode);
|
||||
}
|
||||
$fileNode->appendChild($issueNode);
|
||||
|
Loading…
Reference in New Issue
Block a user