1
0
mirror of https://github.com/danog/psalm.git synced 2024-11-30 04:39:00 +01:00

Add default shortcode

This commit is contained in:
Matthew Brown 2020-03-20 14:41:25 -04:00
parent 7afb4b4cd5
commit 44713a48ac

View File

@ -10,6 +10,7 @@ use function array_pop;
abstract class CodeIssue
{
const ERROR_LEVEL = -1;
const SHORTCODE = 0;
/**
* @var CodeLocation
@ -104,7 +105,6 @@ abstract class CodeIssue
$fqcn_parts = explode('\\', get_called_class());
$issue_type = array_pop($fqcn_parts);
/** @psalm-suppress UndefinedConstant */
return new \Psalm\Internal\Analyzer\IssueData(
$severity,
$location->getLineNumber(),