1
0
mirror of https://github.com/danog/psalm.git synced 2025-01-22 13:51:54 +01:00

Trim baseline selection

Refs vimeo/psalm#6000
This commit is contained in:
Bruce Weirdan 2022-01-03 20:33:01 +02:00
parent 21fc7a75a9
commit 988ae9496a
No known key found for this signature in database
GPG Key ID: CFC3AAB181751B0D

View File

@ -282,12 +282,7 @@ class ErrorBaseline
foreach ($existingIssueType['s'] as $selection) { foreach ($existingIssueType['s'] as $selection) {
$codeNode = $baselineDoc->createElement('code'); $codeNode = $baselineDoc->createElement('code');
$codeNode->textContent = trim($selection);
/** @todo in major version release (e.g. Psalm 5) replace $selection with trim($selection)
* This will be a minor BC break as baselines generated will then not be compatible with Psalm
* versions from before PR https://github.com/vimeo/psalm/pull/6000
*/
$codeNode->textContent = $selection;
$issueNode->appendChild($codeNode); $issueNode->appendChild($codeNode);
} }
$fileNode->appendChild($issueNode); $fileNode->appendChild($issueNode);