Skip to content
Permalink
Browse files

Reduce duplicate trait messages

  • Loading branch information...
muglug committed May 27, 2019
1 parent 97eab1a commit fd3235d785987a2d9eab5513832d98292ae4d3fc
Showing with 10 additions and 2 deletions.
  1. +9 −1 src/Psalm/Issue/CodeIssue.php
  2. +1 −1 src/Psalm/IssueBuffer.php
@@ -41,7 +41,7 @@ public function getLocation()
/**
* @return string
*/
public function getShortLocation()
public function getShortLocationWithPrevious()
{
$previous_text = '';
@@ -53,6 +53,14 @@ public function getShortLocation()
return $this->code_location->file_name . ':' . $this->code_location->getLineNumber() . $previous_text;
}
/**
* @return string
*/
public function getShortLocation()
{
return $this->code_location->file_name . ':' . $this->code_location->getLineNumber();
}
/**
* @return string
*/
@@ -135,7 +135,7 @@ public static function add(CodeIssue $e)
throw new Exception\CodeException(
$issue_type
. ' - ' . $e->getShortLocation()
. ' - ' . $e->getShortLocationWithPrevious()
. ':' . $e->getLocation()->getColumn()
. ' - ' . $e->getMessage()
);

0 comments on commit fd3235d

Please sign in to comment.
You can’t perform that action at this time.