mirror of
https://github.com/danog/psalm.git
synced 2025-01-22 13:51:54 +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) {
|
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user