Skip to content

Commit

Permalink
Merge pull request #7279 from weirdan/trim-existing-issue-selections
Browse files Browse the repository at this point in the history
  • Loading branch information
weirdan committed Jan 3, 2022
2 parents 21fc7a7 + 988ae94 commit 4c84745
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/Psalm/ErrorBaseline.php
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 4c84745

Please sign in to comment.