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:
parent
7afb4b4cd5
commit
44713a48ac
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user