Skip to content

Commit

Permalink
Trim baseline selection
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Jan 3, 2022
1 parent 21fc7a7 commit 988ae94
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 @@ -282,12 +282,7 @@ function (string $extension): string {

foreach ($existingIssueType['s'] as $selection) {
$codeNode = $baselineDoc->createElement('code');

/** @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;
$codeNode->textContent = trim($selection);
$issueNode->appendChild($codeNode);
}
$fileNode->appendChild($issueNode);
Expand Down

0 comments on commit 988ae94

Please sign in to comment.