Skip to content

Commit

Permalink
Strip whitespace in IssueData selected text
Browse files Browse the repository at this point in the history
Part of work on issue #5979
  • Loading branch information
bdsl committed Jun 26, 2021
1 parent 19cc4cb commit 3097bcc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Psalm/Internal/Analyzer/IssueData.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ public function __construct(
$this->file_name = $file_name;
$this->file_path = $file_path;
$this->snippet = $snippet;
$this->selected_text = $selected_text;
$this->selected_text = trim($selected_text);
$this->from = $from;
$this->to = $to;
$this->snippet_from = $snippet_from;
Expand Down

0 comments on commit 3097bcc

Please sign in to comment.