mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 05:41:20 +01:00
Merge pull request #7279 from weirdan/trim-existing-issue-selections
This commit is contained in:
commit
4c8474573b
@ -282,12 +282,7 @@ class ErrorBaseline
|
||||
|
||||
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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user